slava
slava
NNuxt
Created by slava on 3/13/2025 in #❓・help
useId() hydration mismatch
I'm experiencing an issue when using useId while creating form field components. I get warnings only on the <label> elements accompanying an input, and the issue is that there is always an extra 0 in the id string, e.g.
- rendered on server: for="v-0-0-0-0-0-0-0-0-0-1-0-0-0-0-0-0-0_9"
- expected on client: for="v-0-0-0-0-0-0-0-0-0-0-1-0-0-0-0-0-0-0-0_9"
- rendered on server: for="v-0-0-0-0-0-0-0-0-0-1-0-0-0-0-0-0-0_9"
- expected on client: for="v-0-0-0-0-0-0-0-0-0-0-1-0-0-0-0-0-0-0-0_9"
10 replies