SSR Exchange 'cache-and-network' #1846
-
Hi I'm using the the ssr exchange with next-urql to hydrate SSR data client-side as described here. I have set the request policy within my useQuery call to be 'cache-and-network' however, I think when the data is rehydrated through the ssr exchange, it does not register as a cache hit so no network call is ever made. Is this the intended behavior and if so is there anyway around this without manually re-executing the query? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Yes, the time difference between ssr rehydration is very small hence why we don't do that currently. Is there a case for this? EDIT: The fix was done in a PR #1852, we've now introduced the option of specifying |
Beta Was this translation helpful? Give feedback.
Yes, the time difference between ssr rehydration is very small hence why we don't do that currently. Is there a case for this?
EDIT: The fix was done in a PR #1852, we've now introduced the option of specifying
staleWhileRevalidate
as an option