Reset store with this.$reset(); does not reset an Array #1874
Unanswered
nhatimme
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Reproduction
Steps to reproduce the bug
In my state I have the following Object:
preSession: { email: null, password: null, exists: false, failed: false, isLoading: false, validation: { email: false, password: false } },
During the activity on the application this object will be changed.
If I reset this store with: this.$reset(); it does reset everything, but not my prefilled object named
preSession
. Changed data is still in this object.Expected behavior
In my opinion it should also restore preSession to its default values. Which is:
preSession: { email: null, password: null, exists: false, failed: false, isLoading: false, validation: { email: false, password: false } },
Actual behavior
If I reset this store with: this.$reset(); it does reset everything, but not my prefilled object named
preSession
. Changed data is still in this object.Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions