Open itsMapleLeaf opened 4 years ago
Code like this could benefit from it:
return { ...state, something: { ...state.something, [someId]: { ...state.something[someId], someValue, } } }
return produce(state, draft => { state.something[someId].someValue = someValue })
https://immerjs.github.io/immer/docs/introduction
@kingdaro thanks for the suggestion! Tagged this as an enhancement for now as this isn't MVP blocking work, but we might be able to greatly benefit from this.
Code like this could benefit from it:
https://immerjs.github.io/immer/docs/introduction