0
Q:

Error: [Immer] An immer producer returned a new value *and* modified its draft. Either return a new value *or* modified

Immer library recommends the use of code block to insure consistency across 
large code-base
your reducer should be like this (use code block)

rootReducer: (state, action) => { state.id = action.payload.id } 
0

New to Communities?

Join the community