setting initial values #1478
Unanswered
onelabone
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
what is the proper way to set initial value from data from http request?
how to change the initial value? Right now, when I do $reset, it will reset value to the initial value when the store is created (say 0). In my case, I want to update the state value after certain action (e.g. update a value to 1) and at that point i want the initial value to be set to the updated value (1). Upon $reset , i want to get 1 instead of 0.
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions