Skip to content
Advertisement

Tag: react-redux

replacing createStore with configureStore

I updated my packages and VScode told me that createStore was depreciated. So I went about replacing it My store file, I have included the original line as a comment at the bottom Using redux App component With configureStore() the console is giving me a warning about putting non-serizible objects in state. They say its possible but when I try

An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft

I understand this has been asked before but so far no answers except someone making a syntax mistake. I have verified this against every tutorial I’ve seen online and I can’t find the issue. It seems to be coming from the fullfilled extraReducer In the component, nothing weird, and yes everything is imported You can see in my image below

Advertisement