Replies: 1 comment 1 reply
-
Hi @Ledes , This wouldn't be good practice because the replacing of the store's state will happen outside of pullstate's internal mechanisms to keep your UI updated. The better way to do this kind of thing would be to make use of Or, since I see you're doing a form- maybe your use-case is to have temporary state that can be quickly initialized when loading up the form for the first time. For this you should look at |
Beta Was this translation helpful? Give feedback.
-
Hi!
I was wondering if this is a good practice, where you would do something like this to reset the store to an initial state:
I was confused since that kind of works but not if you something like an array.
for example if you have something like this, it won't replace the content of the array:
Beta Was this translation helpful? Give feedback.
All reactions