- Notifications
You must be signed in to change notification settings - Fork16
Open
Description
I'm introducing immerhttps://github.com/mweststrate/immer to our project, in which we use your fantastic module.
We currently use this pattern:
reducer.case(actions.login.failed,(state,payload)=>produce(state,draft=>{draft.error=payloaddraft.loggingIn=false}))
And I would love to make this simpler. Something like...
reducer.immerCase(actions.login.failed,(draft,payload)=>{draft.error=payloaddraft.loggingIn=false})
I'm not sure whether this idea fits in your module, as it's now specific to immer, and this library is about TypeScript and Redux...
If I'm right about the above, then I'm wondering out loud how to make this work... I think I'll start with a fork and see :-)
Metadata
Metadata
Assignees
Labels
No labels