Next13 sharing data from RootLayout to other sever components #5265
Unanswered
Nixteridakis
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
I've been trying to figure out how to use TanStack query docs for my project, but I'm a bit confused about Hydration. As far as I understand, it's mainly used to share and revalidate data between server and client components.
But here's my question: what if I need to fetch the same data on the RootLayout (server component) and its children (also server components)? Is it possible to use Hydration for this?
I'd really appreciate your input on this. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions