Skip to content

Access router in Pinia store defined using composition API (Setup store) #15468

Discussion options

You must be logged in to vote

With Pinia setup stores you should be able to use useRouter from vue-router directly.

Replies: 3 comments 19 replies

Comment options

@charlycou
Comment options

@MilosPaunovic
Comment options

@charlycou
Comment options

@charlycou
Comment options

@charlycou
Comment options

Comment options

You must be logged in to vote
13 replies
@davedew
Comment options

@TobyMosque
Comment options

@davedew
Comment options

@TobyMosque
Comment options

@davedew
Comment options

Answer selected by charlycou
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment