LouisMazel / maz-ui

Vue & Nuxt library of standalone components & tools to build interfaces

Home Page:https://maz-ui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Issue][Nuxt] fix SSR mismatch warnings with generated id of components

LouisMazel opened this issue · comments

Describe the bug

Nuxt a changé les règles d'hydratation entre le DOM server et le DOM client.
Now the generated uniq id by the components sont détectés comme des mismatches lors de la phase d'hydratation

To Reproduce

  1. Impletement the MazInput component in dev mode
  2. Reload the page
  3. Warnings appear in the console

Expected behavior

No warnings and mismatches

Additional context

The hook useId will be released in v3.5 of Vue: Source
In the meantime we can provide an ID to the component to fix this error