#How Serious are Hydration Errors

25 messages · Page 1 of 1 (latest)

astral obsidian
#

I seem to be constantly having issues with Hydration errors. I'm following a tutorial on youtube that is using Next and ShadCN to build a form. However when I follow the steps I get a hydration error saying isnt expecting a div inside a div and the error seems to be coming from the shadCN form.tsx component and this is all from within a client component.

How seriously should i take these kinds of errors? There seems to be nothing different showing on my page, functionality still works...it seems a bit pedantic or am I completely wrong?

wide ravenBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

wintry temple
#

They mean that your code has subtle React errors, and everything probably works, but if ever it doesn't work debugging will be a nightmare.

#

I use shadcn and next.js and have 0 hydration errors, so it is not a defect of the shadcn/ui

tribal dew
astral obsidian
#

But actually i dont have the extension though

tribal dew
#

i have it too

astral obsidian
#

i just use lastpass

tribal dew
astral obsidian
#

ah wait

#

yes i do

tribal dew
#

lol

#

disable it and try again

astral obsidian
#

How did you figure out that thats what was causing it??

tribal dew
astral obsidian
tribal dew
astral obsidian
vivid night
#

Most of the time, hydration issues are caused by mismatches in HTML elements or by browser extensions

astral obsidian
vivid night
#

you can raise a issue on github

timber stone