-
I want to use a separate dispatch function to set any attribute in my Zustand store, based on the value of the Let's say I have a long form, with this as one of my elements.
And on blur, I have a set attribute function.
This function literally tries to set the value of What I want it to do is to grab the name Is there a way to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
useStore.setState({ [name]: value })
?