You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
I am using Immer as middleware,
Ideally I wouldn't have to use 'handleSet' at all,
But assuming I have to to get access to Immer 'draft', seems like the draft is not propagated to the handle set
What approach should I do here? And maybe there is a workaround I can apply?
I tried the following setup:
Just to clarify, what are you trying to achieve? Are you trying to modify your zustand store state withinhandleSet? If so, I'm not sure this is the appropriate place to modify zustand store state, as I believe handleSet is used for determining when zundo should add to its state history within the temporal state attached to your zustand store.
Just to clarify, what are you trying to achieve? Are you trying to modify your zustand store state withinhandleSet? If so, I'm not sure this is the appropriate place to modify zustand store state, as I believe handleSet is used for determining when zundo should add to its state history within the temporal state attached to your zustand store.
Thanks Iv'e looked into the example and seems like I got it right in the first time :)
But... It still doesn't work, going to debug deeper and hopefully find a solution.
I am afraid that it doesn't update my "Map" objects
Hey,
I am using Immer as middleware,
Ideally I wouldn't have to use 'handleSet' at all,
But assuming I have to to get access to Immer 'draft', seems like the draft is not propagated to the handle set
What approach should I do here? And maybe there is a workaround I can apply?
I tried the following setup:
The text was updated successfully, but these errors were encountered: