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

what is the reason that the draft can not be reused after finishDraft?

jupiterben opened this issue Β· comments

commented

πŸ™‹β€β™‚ Question

I want to reuse the draft after finishDraft , is it possible? and can I use draft to render react component?

If you're using the createDraft/finishDraft combo, I think using the state passed to createDraft and the result of finishDraft is enough.