plugin is not initializing in Nuxt3 rc10 #1662
Answered
by
alaypanov
alaypanov
asked this question in
Help and Questions
-
Hi. Trying to inject static data into every store with pinia.use() from nuxt plugins, // ~/plugins/myPlugin.ts
export default defineNuxtPlugin(({ $pinia }) => {
$pinia.use(() => ({ answer: 42 }))
}) However new property is not available in the store. "nuxt": "^3.0.0-rc.10",
"@pinia/nuxt": "^0.4.2",
"pinia": "^2.0.22", node v14.20.0 |
Beta Was this translation helpful? Give feedback.
Answered by
alaypanov
Sep 19, 2022
Replies: 1 comment
-
After multiple refactors I was able finally resolve it. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alaypanov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After multiple refactors I was able finally resolve it.
another plugin depended on one of the stores and that store depended on this plugin,
which created this dependency entanglement.