Next.js Discord

Discord Forum

Hydration failed because the initial UI does not match ( element loads later )

Unanswered
Belgian Hare posted this in #help-forum
Open in Discord
Avatar
Belgian HareOP
the <th> element with "proxy user" label loads late, that whole component has "use client" too btw . so why does it err?
Image
Image
Image

15 Replies

Avatar
Belgian HareOP
how do i handle elements which arent present in initial UI?
Avatar
what's useSnapshot hook?
use either next/dynamic with ssr: false or clent-only library
Avatar
Belgian HareOP
thats from valtio
for global state like thing
next/dynamic fixed it
but my loader doesnt show
Avatar
show me your code where you load the component
oh, you created a new thread, we can chat there.
@Belgian Hare mark solution to close this thread
Avatar
Belgian HareOP
nvm with this issue, the new thread is actual issue
cuz it shows nan etc and empty data
that issue isnt related to this one
Avatar
so what's the issue in this thread???
@Belgian Hare