Skip to content

Use pinia for holding router state #595

Answered by posva
wbxyy asked this question in Help and Questions
Discussion options

You must be logged in to vote

Since your action is async, you should await its completion inside of the router before each

BTW, avoid destructuring a store, you don't get a reactive value, you get the value at the time of the destructuring and this could fail in some scenarios

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wbxyy
Comment options

Answer selected by wbxyy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants