-
Notifications
You must be signed in to change notification settings - Fork 199
Closed
Description
When I add the onEnter to a route, I get several errors about ReduxRouterContext and the page doesn't load.
const routes = (
<Route path='/' component={App}>
<Route path='profile' component={Profile} onEnter={requireAuth} />
<Route path='*' component={NotFound} />
</Route>
);
...
React.render((
<div>
<Provider store={store}>
{() => <ReduxRouter />}
</Provider>
<DebugPanel top right bottom>
<DevTools store={store} monitor={LogMonitor} />
</DebugPanel>
</div>
), document.getElementById('app'));
Warning: Failed propType: Required prop `location` was not specified in `RoutingContext`. Check the render method of `ReduxRouterContext`. bundle.js:13484:8
Warning: Failed propType: Required prop `routes` was not specified in `RoutingContext`. Check the render method of `ReduxRouterContext`. bundle.js:13484:8
Warning: Failed propType: Required prop `params` was not specified in `RoutingContext`. Check the render method of `ReduxRouterContext`. bundle.js:13484:8
Warning: Failed propType: Required prop `components` was not specified in `RoutingContext`. Check the render method of `ReduxRouterContext`. bundle.js:13484:8
Warning: Failed Context Types: Required child context `location` was not specified in `RoutingContext`. Check the render method of `ReduxRouterContext`.
krzkaczor, wzup, PKief, duzliang, ziarno and 2 more
Metadata
Metadata
Assignees
Labels
No labels