I tried to set up react-router-redux in my application, as presented here, but it broke my state.
Here is my store setup :
import { createStore, applyMiddleware } from 'redux'
import { combineReducers } from 'redux'
import thunk from 'redux-thunk'
import { syncHistory, routeReducer } from 'react-router-redux'
import rootReducer from '../reducers'
import Immutable, {Map} from 'immutable'
[Other imports]
const middleware = [X,Y]
const reducer = combineReducers(Object.assign({}, rootReducer, {
routing: routeReducer
}));
export default function configureStore(initialState, history) {
const reduxRouterMiddleware = syncHistory(history);
middleware.push(reduxRouterMiddleware);
const createStoreWithMiddleware = applyMiddleware(...middleware)(createStore);
const store = createStoreWithMiddleware(reducer, initialState);
return store
}
Here is my reducers/index.js :
import { combineReducers } from 'redux'
import A from './A'
import B from './B'
import C from './C'
...
const rootReducer = combineReducers({
A,
B,
C,
...
})
export default rootReducer
When I console.log in my application my store.getState(), I get : only a routing.location tree.
If I use "rootReducer" instead of "reducer" when creating my store, I get my normal state tree (A, B, C ...)
but of course I no longer get the routing.location part I'm interested in ...
What am I doing wrong ?
Thank you all !

