mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +01:00
Implement new routine for routeDidChange
This commit is contained in:
parent
8ba6f11dfe
commit
8f9b5c7f27
@ -83,6 +83,9 @@ class AppGateway {
|
|||||||
EventActions.applicationWillBoot(settings);
|
EventActions.applicationWillBoot(settings);
|
||||||
|
|
||||||
let history = createBrowserHistory();
|
let history = createBrowserHistory();
|
||||||
|
|
||||||
|
history.listen(EventActions.routeDidChange);
|
||||||
|
|
||||||
React.render((
|
React.render((
|
||||||
<Router history={history}>
|
<Router history={history}>
|
||||||
<Redirect from="/" to="/collection" />
|
<Redirect from="/" to="/collection" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user