Skip to content

Commit

Permalink
update redux store config to improve warning for store
Browse files Browse the repository at this point in the history
  • Loading branch information
edbrett committed Nov 4, 2020
1 parent e2b243f commit 89311b9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions redux/store.js
Expand Up @@ -5,6 +5,16 @@ import { rootReducer } from 'fast-redux';
const createStore = () =>
configureStore({
reducer: rootReducer,
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({
thunk: true,
immutableCheck: {
warnAfter: 80,
},
serializableCheck: {
warnAfter: 80,
},
}),
});

const makeStore = () => useMemo(() => createStore(), []);
Expand Down

0 comments on commit 89311b9

Please sign in to comment.