mirror of
https://github.com/ascribe/onion.git
synced 2024-06-30 13:41:57 +02: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…
Reference in New Issue
Block a user