Skip to content

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

@leon-marzahn

Description

@leon-marzahn

📚 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions