Apollo Client preloading API reference
This is in alpha stage and is subject to breaking changes.
A higher order function that returns a
preloadQuery function which can be used to begin loading a query with the given
client. This is useful when you want to start loading a query as early as possible outside of a React component.
Refer to the Suspense - Initiating queries outside React section for a more in-depth overview.
const preloadQuery = createQueryPreloader(client);
function createQueryPreloader(client: ApolloClient<any>): PreloadQueryFunction
ApolloClient instance that will be used to load queries from the returned