How to reset all nested stores of a parent store? #2937
Unanswered
shizzic
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
-
I mean, if i implement a
$reset
method like thisThen i can reset a store with this without dispose. But if a stote has some nested stores (not composables), then it will stay the same, so need to manually reset all nested stores like this in my vue components:
How can i catch a $reset method inside a
$store
by hook and reset all nested stores in one place (inside parent)?Beta Was this translation helpful? Give feedback.
All reactions