Skip to content

I can't find a way to apply a plugin only to specific store. #2027

Closed Answered by Ilanaya
fermaud asked this question in Help and Questions
Discussion options

You must be logged in to vote

Hm, if I get you clear you just need to compare store.$id with id of the store you need to patch.
Like this:

const id = 'yourId'
pinia.use(({ store }) => {
  if(store.$id === id) {
     ....
})

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@fermaud
Comment options

@posva
Comment options

Answer selected by posva
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants