nuxt / ui

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

Tabs warning Computed is still dirty after getter evaluation #1392

Open ThomasWT opened 9 months ago

ThomasWT commented 9 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 9 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.