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
{{ message }}
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.
How would you go about resetting the store to the initial state (intial state declared in separate files and imported)... without manually resetting all the properties of the state?
The text was updated successfully, but these errors were encountered:
Hi,
I had the same requirement.
I simply cloned the initial store and saved it in a variable.
Then I added a method on the store itself to "restore" the initial state based on the saved state.
How would you go about resetting the store to the initial state (intial state declared in separate files and imported)... without manually resetting all the properties of the state?
The text was updated successfully, but these errors were encountered: