Skip to content

how to use with Composition API out of component? #181

Answered by posva
Fallsleep asked this question in Q&A
Discussion options

You must be logged in to vote

See https://pinia.vuejs.org/core-concepts/plugins.html#plugins

You cannot call useRouter() within the action like you do, that's where the inject() can only be used inside setup error comes from

Replies: 1 comment 1 reply

Comment options

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

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