taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 352f059eb232052aa80814e77e4a9c17d300db5b
parent db0fc776982a61181baf286c8344a3b11d3531ec
Author: Florian Dold <florian.dold@gmail.com>
Date:   Mon, 10 Oct 2016 02:36:12 +0200

use right update functions

Diffstat:
Mpopup/popup.tsx | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/popup/popup.tsx b/popup/popup.tsx @@ -43,7 +43,6 @@ function onUpdateNotification(f: () => void) { class Router extends preact.Component<any,any> { static setRoute(s: string): void { window.location.hash = s; - preact.rerender(); } static getRoute(): string { @@ -64,7 +63,7 @@ class Router extends preact.Component<any,any> { componentWillMount() { console.log("router mounted"); window.onhashchange = () => { - this.forceUpdate(); + this.setState({}); for (let f of Router.routeHandlers) { f(); }