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

fix: When nuxt devtools is enabled, pinia logs "x store installed" are present #718

Closed
alSergey opened this issue Aug 30, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@alSergey
Copy link

🐛 The bug

I described the bug in detail in the pinia repository vuejs/pinia#2749. There is also a discussion where they found that the problem occurs precisely when nuxt devtools are enabled vuejs/pinia#2750.

🛠️ 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

No response

@alSergey alSergey added the bug Something isn't working label Aug 30, 2024
@arashsheyda
Copy link
Member

arashsheyda commented Aug 30, 2024

I believe this is from Pinia tab (integrated in nuxt devtools from vue devtools-next),
I don't think this is a bug, more likely to be a feature... and I think you should open an issue there as we can't disable the logs from here

@alSergey
Copy link
Author

The problem is that when you enable nuxt devtools, logs from pinia "x store installed" appear, which cannot be disabled. They interfere and clutter the console. The only way to disable them is to completely disable nuxt devtools in nuxt.config.ts.

@alSergey
Copy link
Author

I tried to open an issue in the pinia repository, they told me it's not their problem and I need to contact nuxt vuejs/pinia#2750 (comment).

@arashsheyda
Copy link
Member

I understand but it's not related to Nuxt Devtools either, the Pinia tab is from @vuejs/devtools-next

@alSergey
Copy link
Author

alSergey commented Sep 2, 2024

I opened an issue in vue devtools, the problem is indeed on their side. Thanks for the help.

@manniL
Copy link
Member

manniL commented Sep 2, 2024

Closing here in favor of vuejs/devtools-next#593

@manniL manniL closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2024
@arashsheyda
Copy link
Member

@alSergey thank you!

@alSergey
Copy link
Author

alSergey commented Sep 3, 2024

@arashsheyda hi, today the vue devtools dependency was released with a pinia fix. Can you please update your version, as I see there is a hard link here.

@arashsheyda
Copy link
Member

/cc @antfu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants