summaryrefslogtreecommitdiff
path: root/src/store
diff options
context:
space:
mode:
Diffstat (limited to 'src/store')
-rw-r--r--src/store/configure-store.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/store/configure-store.js b/src/store/configure-store.js
index 2c5f46fb..02faf073 100644
--- a/src/store/configure-store.js
+++ b/src/store/configure-store.js
@@ -24,12 +24,15 @@ const middlewares = [
viewportAdjustmentMiddleware
];
+export let store = undefined;
+
export default function configureStore() {
- const store = createStore(
+ const configuredStore = createStore(
rootReducer,
compose(persistState("auth"), applyMiddleware(...middlewares))
);
sagaMiddleware.run(rootSaga);
+ store = configuredStore;
- return store;
+ return configuredStore;
}