[vue3 compositon API (setup)] Why state is removed when the route change? #6712
Unanswered
nongtiny
asked this question in
Help/Questions
Replies: 1 comment
-
Your question is missing a lot of details that would be necessary to understand your problem and provide an answer. |
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
-
In Vue2, state doesn't remove when the route is changed. I tried to add the query to the URL by using
When the route is changed, it acts like a page is refreshed. It triggers the code in the setup again, so it makes all of the states gone even
onMounted
is triggered again.Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions