vuejs / devtools-next

The next iteration of Vue DevTools
https://devtools.vuejs.org/
MIT License
1.41k stars 96 forks source link

[bug] When nuxt devtools is enabled, pinia logs "x store installed" are present #593

Closed alSergey closed 3 weeks ago

alSergey commented 3 weeks ago

🐛 The bug

If nuxt devtools are enabled, then pinia "x store installed" logs appear in the console. The only way to disable them is to disable nuxt devtools.

The original example is in the pinia repository.

🛠ī¸ To reproduce

https://stackblitz.com/edit/pinia-store-installed-repro?file=pages%2Findex.tsx

🌈 Expected behavior

There is a setting that allows to disable these logs.

ℹī¸ Additional context

I opened an issue in the pinia repository, they told me it was a problem with nuxt devtools. After that, I opened an issue in the nuxt devtools repository, they told me this is a problem in vue devtools.

webfansplz commented 3 weeks ago

https://github1s.com/vuejs/pinia/blob/v2/packages/pinia/src/devtools/plugin.ts#L319-L320

We need to support plugin setting feature to let users customize it.

alSergey commented 3 weeks ago

@webfansplz is there a workaround to disable these logs now? They really interfere with my work.