maz-ui icon indicating copy to clipboard operation
maz-ui copied to clipboard

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

Open LouisMazel opened this issue 1 year ago • 0 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

LouisMazel avatar Jan 23 '24 15:01 LouisMazel