nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
3.96k stars 493 forks source link

Tabs warning Computed is still dirty after getter evaluation #1392

Open ThomasWT opened 8 months ago

ThomasWT commented 8 months ago

Environment

Version

v2.13.0

Reproduction

https://stackblitz.com/edit/nuxt-starter-d5gcpn

Description

Using the tabs component throws a warning in the console, client side seeming to slow down the clientside hydration

vue.js:288 [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

vue.js:288 [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
benjamincanac commented 8 months ago

This is a warning that was added in Vue v3.4.19, and an issue has already been created in Headless UI: https://github.com/tailwindlabs/headlessui/issues/2985. We cannot do much about it but to wait for a fix in Headless UI.