immerjs / immer

Create the next immutable state by mutating the current one

Home Page:https://immerjs.github.io/immer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to update entire draft with useImmerReducer?

cdx111 opened this issue Β· comments

πŸ™‹β€β™‚ Question

hi, I am using useImmerReducer that's first param is a reducing function that how to update the entire draft in, the state was updated by returning back entire updating data but present typed error

Please construct a small code sandbox demonstrating your problem.