Skip to content
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

help: v2 breaking change has broken pinia devtools but isn't documented #822

Closed
leon-marzahn opened this issue Mar 19, 2025 · 0 comments
Closed
Labels
help wanted Extra attention is needed

Comments

@leon-marzahn
Copy link

📚 What are you trying to do?

Pinia relied on an older method of adding a tab onto the devtools by using a vue plugin, but with the recent change particularly this:
v1.7.0...v2.0.0#diff-3052b465f80769fc606a22db21ef75d0cf440b2a827d8dc73895a714562f0b8f
Image

The plugin that initialized the devtools is now loaded after pinia or any plugins not registered after this initialization. As far as i could tell this wasn't documented as a breaking change.

This is the pinia code in question:

const plugin: Plugin<{ pinia: Pinia }> = defineNuxtPlugin({
  name: 'pinia',
  setup(nuxtApp) {
    const pinia = createPinia()
    nuxtApp.vueApp.use(pinia)
    ...
  },
})

What would be the best way to deal with this to make it work with pinia again?

Linking the discussion on pinia for reference: vuejs/pinia#2952

🔍 What have you tried?

No response

ℹ️ Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant