summaryrefslogtreecommitdiff
path: root/frontend/src/store.js
diff options
context:
space:
mode:
authorVictor Chabbert <chabbertvi@eisti.eu>2017-01-20 18:32:14 +0100
committerVictor Chabbert <chabbertvi@eisti.eu>2017-01-20 23:25:26 +0100
commitcf91a05903b11ce7c41efc27a89179ffd855ec1c (patch)
treeae3c4a9aaa66375570483f29f38907f50ce13730 /frontend/src/store.js
parentRemove build matrix as we don't need a macOS build (diff)
downloadseven-wonders-cf91a05903b11ce7c41efc27a89179ffd855ec1c.tar.gz
seven-wonders-cf91a05903b11ce7c41efc27a89179ffd855ec1c.tar.bz2
seven-wonders-cf91a05903b11ce7c41efc27a89179ffd855ec1c.zip
Update deps, Add redux-saga-router
Diffstat (limited to 'frontend/src/store.js')
-rw-r--r--frontend/src/store.js6
1 files changed, 4 insertions, 2 deletions
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
}
}
bgstack15