You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Encountered when using Modal, Tabs, Avatar etc.
This issue stay since a long time and it's very very boring.
Should be reproducible on any radix element which uses Primitive.
Describe the bug
When you use things, you got warning on console because id on client & server are different...
Expected behavior
Have the same id on 2 sides ^^.
Context & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered:
I know, this is very annoying. However, right now this is an issue that exists because Vue itself does not have its own SSR-friendly composable for useId, which is why you get different id's on server and client hydrations.
Nuxt recently added useId officially, which is SSR-friendly. But Radix Vue is not Nuxt specific, so it must adhere to the general Vue specifications.
Right now, this will continue happening but it should not cause real problems. It is planned that Vue 3.5 will officially support an SSR-friendly useId, so it will be fixed until then.
Environment
Link to minimal reproduction
https://stackblitz.com/edit/github-shdqqw?file=app.vue
Steps to reproduce
Encountered when using Modal, Tabs, Avatar etc.
This issue stay since a long time and it's very very boring.
Should be reproducible on any radix element which uses Primitive.
Describe the bug
When you use things, you got warning on console because id on client & server are different...
Expected behavior
Have the same id on 2 sides ^^.
Context & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered: