Replies: 1 comment 23 replies
-
Hi @Farangi, |
Beta Was this translation helpful? Give feedback.
23 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey Shrugsy,
You have done an amazing Job writing the use-immer-state hook, I have been trying use it, but I ran into a problem.
For a particular component, there are multiple state objects, and I needed to use this hook for one particular state object, but when i integrated this hook for that state object, it automatically overrides the whole components state, and throws an error whenever i use setState(useState one) on another state object.
Is there a workaround for this?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions