Farzin-Firoozi / react-modern-drawer

https://farzin-firoozi.github.io/react-modern-drawer/
MIT License
210 stars 22 forks source link

Warning: Prop `id` did not match. Server: "EZDrawer__checkboxelyhn" Client: "EZDrawer__checkboxghn8c" #38

Closed gabriel-logan closed 5 months ago

gabriel-logan commented 5 months ago

image

my code

image

It's working, but it keeps this warning in the log

Im using nextjs14

gabriel-logan commented 5 months ago

I solve passing

customIdSuffix="logan"

The problem is that the default value generates different values on the server and the client because of math random