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

Tabs throw warning: Computed is still dirty after getter evaluation #25943

Closed
MickL opened this issue Feb 25, 2024 · 4 comments
Closed

Tabs throw warning: Computed is still dirty after getter evaluation #25943

MickL opened this issue Feb 25, 2024 · 4 comments

Comments

@MickL
Copy link

MickL commented Feb 25, 2024

Environment


  • Operating System: Darwin
  • Node Version: v21.6.1
  • Nuxt Version: 3.10.3
  • CLI Version: 3.10.1
  • Nitro Version: 2.8.1
  • Package Manager: bun@1.0.26
  • Builder: -
  • User Config: extends, modules, runtimeConfig, pinia, image, routeRules, app, i18n, security
  • Runtime Modules: @nuxt/ui@^2.14.1
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-4rnoff-spccez?file=app.vue

Describe the bug

Using tabs as shown in the docs throws multiple warnings:

[Vue warn] Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free

Additional context

No response

Logs

No response

Copy link

stackblitz bot commented Feb 25, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@manniL
Copy link
Member

manniL commented Feb 25, 2024

Please raise in https://github.com/nuxt/ui

Duplicate of nuxt/ui#1392

@manniL manniL closed this as not planned Won't fix, can't repro, duplicate, stale Feb 25, 2024
@DamianGlowala
Copy link
Member

DamianGlowala commented Feb 25, 2024

It's been raised in Nuxt UI (nuxt/ui#1392) and at source in Headless UI (tailwindlabs/headlessui#2985).

@MickL
Copy link
Author

MickL commented Feb 25, 2024

Damn I was looking in the wrong repo, thats why I didnt find it, sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants