From cf91a05903b11ce7c41efc27a89179ffd855ec1c Mon Sep 17 00:00:00 2001 From: Victor Chabbert Date: Fri, 20 Jan 2017 18:32:14 +0100 Subject: Update deps, Add redux-saga-router --- frontend/src/store.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'frontend/src/store.js') diff --git a/frontend/src/store.js b/frontend/src/store.js index e9ac401e..750c9c72 100644 --- a/frontend/src/store.js +++ b/frontend/src/store.js @@ -31,10 +31,12 @@ export default function configureStore(initialState = {}) { composeEnhancers(...enhancers) ) - sagaMiddleware.run(rootSaga) + const syncedHistory = syncHistoryWithStore(history, store) + + sagaMiddleware.run(rootSaga, syncedHistory) return { store, - history: syncHistoryWithStore(history, store) + history: syncedHistory } } -- cgit