Open Bradzer opened 5 years ago
Is it working without redux-persist (using the normal store and reducer)? Also maybe try to wrap store creation in a function like proposed in the README in this section:
export default () => {
let store = createStore(persistedReducer)
let persistor = persistStore(store)
return { store, persistor }
}
and set everything up with
import configureStore from './configureStore'
const { store, persistor } = configureStore();
... rendering and stuff
@erksch I followed what you said and the error is gone. However, when the state is changed the screen doesn't render again. It's only when I reload the app that I can see the changes.
Any way to fix that ?
I'm trying to implement redux-persist in my code. After doing all the setup, I got the error when trying to change the state.
Here's my code in my reducers.js file:
And here's my App.js file :
What's wrong ?
Thanks in advance.