vuejs / devtools

⚙ī¸ Browser devtools extension for debugging Vue.js applications.
https://devtools.vuejs.org/
MIT License
1.7k stars 122 forks source link

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

Closed alSergey closed 2 months ago

alSergey commented 2 months 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 2 months 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 2 months ago

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