MCPcopy
hub / github.com/mcnamee/react-native-starter-kit / configureStore

Function configureStore

src/store/index.js:16–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14const loadingPlugin = createLoadingPlugin({});
15
16const configureStore = () => {
17 const store = init({
18 models,
19 redux: {
20 middlewares: [],
21 },
22 plugins: [persistPlugin, loadingPlugin],
23 });
24
25 const persistor = getPersistor();
26 const { dispatch } = store;
27
28 return { persistor, store, dispatch };
29};
30
31export default configureStore;

Callers 1

App.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected