redux-tiny-router icon indicating copy to clipboard operation
redux-tiny-router copied to clipboard

Cannot read property 'preventNavigation' of undefined

Open benjick opened this issue 9 years ago • 0 comments

Hey

Looks like when I'm combining reducers the initial state isn't set somehow.

I can see the state as

Object {counter: Object}

so router is missing.

My reducer function looks like this:

import { combineReducers } from 'redux';
import counter from './counter';
import { tinyReducer } from 'redux-tiny-router';

const rootReducer = combineReducers({
  tinyReducer,
  counter,
});

export default rootReducer;

Am I missing something?

benjick avatar Jan 05 '16 11:01 benjick