VUE3 component reset #9730
Unanswered
shine-compareclub
asked this question in
Help/Questions
Replies: 1 comment
-
https://stackoverflow.com/questions/68312516/how-to-reset-all-values-to-initial-state-in-vue3 I think it will help you |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hello ,
Recently I have upgraded VUEJS2 to VUEJS3.
In vuejs 2 I used
Object.assign(this.$data, this.$options.data())
this statement to reset entire component to it's initial value. But in VUE3 I couldn't find anything like this. Do we have any similar methods to reset an entire component to it's initial state in VUE3 ?Unfortunatly, I could not find anything!!
Beta Was this translation helpful? Give feedback.
All reactions