Replies: 1 comment 1 reply
-
It might be because options on the server are often purposefully different than on the client. I guess you could just share the |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
when using nextjs in SSR, dehydrated state do not contains options. why?
https://github.com/tannerlinsley/react-query/blob/16b7d290c70639b627d9ada32951d211eac3adc3/src/hydration/hydration.ts#L60-L66
_app/index.tsx
hydrate state with new queryClient for each request without options. So all the options set inprefechQuery
are lost. but I want to keep options likecachTime
https://react-query.tanstack.com/guides/ssr#using-hydration
Beta Was this translation helpful? Give feedback.
All reactions