Closed mpopov closed 1 year ago
This constant is only used in the built-in selector.
You need to use the routerSelector
: <ReduxRouter history={history} routerSelector={state => state.navigator}/>
I've tried to use action creators, didn't even use selector, copied that combineReducers
line with 'navigator'
and have a bunch of errors 'TypeError: state is undefined' from inside a bundle, not my code. Than renamed key to 'router'
and everything works like a charm. Let me double check in more simple example a bit later :)
Since we have a constant
const ROUTER_REDUCER_MAP_KEY = 'router'
storing reducer with key'navigator'
like in example doesn't work:const rootReducer = combineReducers({ navigator: createRouterReducer(history) })