Skip to content

Instantly share code, notes, and snippets.

@AllGistsEqual
Created May 2, 2021 19:28
Show Gist options
  • Save AllGistsEqual/a5b2d521dcdb7dda8862fa5b03619b9d to your computer and use it in GitHub Desktop.
Save AllGistsEqual/a5b2d521dcdb7dda8862fa5b03619b9d to your computer and use it in GitHub Desktop.
// File: src/redux/index.ts (partial 2)
const store = configureStore({
reducer: persistedReducer,
middleware: getDefaultMiddleware =>
getDefaultMiddleware({
serializableCheck: {
/* ignore persistance actions */
ignoredActions: [FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER],
},
}).prepend(rootMiddleware),
})
export const persistor = persistStore(store)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment