Skip to content

State when route change #1857

Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
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
Labels
None yet
1 participant