Register pinia plugin with @pinia/nuxt module? #622
-
Hey! Thanks for your work, pinia a very cool. Please any idea how i can register pinia plugin with @pinia/nuxt module? |
Beta Was this translation helpful? Give feedback.
Answered by
ttkoma
Aug 22, 2021
Replies: 2 comments 2 replies
-
It's done for you. Is something missing at https://pinia.esm.dev/ssr/nuxt.html? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for this module. But I didn't find an example in the documentation on how to use the Pinia plugins to extend the store using nuxt.
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ttkoma
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this module. But I didn't find an example in the documentation on how to use the Pinia plugins to extend the store using nuxt.
It turned out to be very simple, we can use nuxt plugins to access the pinia instance.
like this:
nuxt.config.js
secretPiniaPlugin.js