State when route change #1857
Answered
by
jp-gouin
jp-gouin
asked this question in
Help and Questions
-
Hi does the state of the store should be persisted when route change ? |
Beta Was this translation helpful? Give feedback.
Answered by
jp-gouin
Dec 10, 2022
Replies: 1 comment
-
So answering my question in case someone run across the same issue . I was using the store in After I did that everything works fine and data is persisted when router change |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jp-gouin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So answering my question in case someone run across the same issue .
I was using the store in
script setup
and I initialise the state with params from the url.But I wasn't populating the data in the
onmounted()
function.After I did that everything works fine and data is persisted when router change