Sample code for a shared public queryClient for SSR
I wanted to use a public shared queryClient for public data ( not sensitive and everyone can look at it).
To make it faster, the page response with data fetched from previous user, then call new request to update it. Then the same request is cached for the next user, ensure zero load.
It is a bit far fetched but I think it is doable.
0 Replies