How to get router instance in setup store? #1954
Answered
by
posva
jsormaz
asked this question in
Help and Questions
-
I'm trying to use a setup store so I can make use of watch() however now I can't get access to the router. with options stores, with setup stores i tried |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Jan 30, 2023
Replies: 1 comment
-
if you are not doing SSR, just import the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
posva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if you are not doing SSR, just import the
router
instance from where it's declared. If you are using SSR, you will have to wait for