-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nuxt 3.7.0 - "getActivePinia()" was called but there was no active Pinia #22943
Comments
Start a new pull request in StackBlitz Codeflow. |
Possibly related: #22918 |
Yes. I think below works import { defineStore, createPinia, setActivePinia } from "pinia"
const pinia = createPinia()
export default { store: setActivePinia(pinia) }
export const useMainStore = defineStore("main", { |
It's not about a general vue project there i need to create Pinia store by my own. Here |
Yes. Says in nuxt only. In store folder. |
nuxt 3.11.2, had to use the same workaround, it doesn't seem to be fixed with more current versions |
Environment
Reproduction
https://stackblitz.com/edit/nuxt-starter-h8hokc?file=app.vue
Describe the bug
Hello,
since 3.7.0 it seems that the pinia instance is initilized in a different order. With nuxt 3.6.5 everything works fine.
Additional context
There is also an issue on my repository for this topic CodeDredd/pinia-orm#1585
Logs
The text was updated successfully, but these errors were encountered: