immerjs / use-immer

Use immer to drive state with a React hooks
MIT License
4.04k stars 92 forks source link

Expose the patch #55

Closed NicolasRannou closed 4 years ago

NicolasRannou commented 4 years ago

Is it possible to expose the patch object in a reducer somehow or for this we should use vanilla Immer?

Thanks and awesome work!

mweststrate commented 4 years ago

For now you should use vanilla immer. Feel free to propose an api change to make em available through this package as well

On Mon, May 4, 2020 at 8:55 AM Nicolas Rannou notifications@github.com wrote:

Is it possible to expose the patch object in a reducer somehow or for this we should use vanilla Immer?

Thanks and awesome work!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/immerjs/use-immer/issues/55, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN4NBAR7TGOHPSKOGM4YCDRPZYGNANCNFSM4MYRBIPQ .