Replies: 1 comment
-
|
@TkDodo I've got the same question here. It seems that wrap the component in I've tested the example here and the client request is ongoing. What I expected is client and server share the same query cache and no network request is made until the staletime is due. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I was looking at the new
ReactQueryStreamedHydrationexamples, but it looks like the idea is to always fetch data from a client side component, never from a server one.How can I have a server side component fetch some data, render it on the client, and send the cache to the client so that client side queries can make use of it?
One approach I can think of is the following:
This should allow to share the cache between the client and the server.
I just don't understand why all of this has not been explored or documented anywhere?
Beta Was this translation helpful? Give feedback.
All reactions