This is my code:
const config = { key: 'users_redux_state', storage, } const reducer = persistCombineReducers(config,{ user:logged_user_reducer, } ) export let store = createStore(reducer) let persistor = persistStore(store)
And I wrapped my routes by <PersistGate persistor={persistor}>
The problem is the local storage don't change even if state redux change , but when I refresh the page it changes .
This is my code:
const config = { key: 'users_redux_state', storage, } const reducer = persistCombineReducers(config,{ user:logged_user_reducer, } ) export let store = createStore(reducer) let persistor = persistStore(store)
And I wrapped my routes by
<PersistGate persistor={persistor}>
The problem is the local storage don't change even if state redux change , but when I refresh the page it changes .