`ssrForceFetchDelay` option causes useQuery calls to hang.
See original GitHub issueSeveral users are indicating in #8582 that they’re having trouble with an option called ssrForceFetchDelay
. As far as I can tell, it’s an option which is used in the browser to disable network fetches. I’m not sure how the option ever worked. There is this discussion item (https://github.com/apollographql/apollo-client/discussions/8060) which states that you can manually set client.disableNetworkFetches
to true
when hydrating, and then set it to false
in the hydration callback.
client.disableNetworkFetches = true;
ReactDOM.hydrate(
<ApolloProvider client={client}>
<MyApp />
</ApolloProvider>,
MOUNT_NODE,
() => {
// app is hydrated!
client.disableNetworkFetches = false;
}
)
If anyone can provide a reproduction that would be excellent.
https://github.com/apollographql/apollo-client/issues/8582#issuecomment-895666089 @woong25 https://github.com/apollographql/apollo-client/issues/8582#issuecomment-896179483 @jrsakizci https://github.com/apollographql/apollo-client/issues/8582#issuecomment-896215262 @tm1000 https://github.com/apollographql/apollo-client/issues/8582#issuecomment-896459460 @mjspollard https://github.com/apollographql/apollo-client/issues/8582#issuecomment-896628321 @krustyc https://github.com/apollographql/apollo-client/issues/8582#issuecomment-896927171 @askurat https://github.com/apollographql/apollo-client/issues/8582#issuecomment-897098745 @simplecommerce
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:6 (4 by maintainers)
Top GitHub Comments
Thank you for the work, care and efforts towards the open source community @brainkim. It does not go unnoticed!
@simplecommerce That’s great to hear! Sorry for the trouble! Closing for housekeeping purposes.