aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/redux/store.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/instant/src/redux/store.ts')
-rw-r--r--packages/instant/src/redux/store.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/instant/src/redux/store.ts b/packages/instant/src/redux/store.ts
index b9ce9c0c1..01deb8690 100644
--- a/packages/instant/src/redux/store.ts
+++ b/packages/instant/src/redux/store.ts
@@ -4,4 +4,10 @@ import { devToolsEnhancer } from 'redux-devtools-extension/developmentOnly';
import { reducer, State } from './reducer';
-export const store: ReduxStore<State> = createStore(reducer, devToolsEnhancer({}));
+export type Store = ReduxStore<State>;
+
+export const store = {
+ create: (state: State): Store => {
+ return createStore(reducer, state, devToolsEnhancer({}));
+ },
+};