T
TanStack8mo ago
inland-turquoise

The console log of my home page runs both in the server and in the browser? Why is that?

Can anyone explain why and what is the purpose of it?
2 Replies
fascinating-indigo
fascinating-indigo8mo ago
server generation, to get the body of the page immediately on the client, and then client side hydration, to make sure everything is in sync and that the dom matches for the client side js to properly work this is like client components in Nextjs (their name is confusing, but client side components do render on the server first)
inland-turquoise
inland-turquoiseOP8mo ago
Thanks for the explanation!

Did you find this page helpful?