Function: createQueryLoader()
createQueryLoader<
TQuery>(preloadableRequest,initialQueryReference?): [Accessor<PreloadedQuery<TQuery> |null|undefined>, (variables,options?) =>void,DisposeFn]
Defined in: index.d.mts:230
Creates imperative helpers for preloading queries.
Returns a tuple:
- an accessor for the current
PreloadedQueryreference - a
loadQueryfunction to start loading with variables - a
disposeQueryfunction to clear and dispose the current reference
Type Parameters
TQuery
TQuery extends OperationType
Parameters
preloadableRequest
Query document or preloadable concrete request.
GraphQLTaggedNode | PreloadableConcreteRequest<TQuery>
initialQueryReference?
Optional initial query reference.
PreloadedQuery<TQuery> | null
Returns
[Accessor<PreloadedQuery<TQuery> | null | undefined>, (variables, options?) => void, DisposeFn]
[queryRef, loadQuery, disposeQuery].
Last updated: 3/5/26, 7:43 PM
Edit this page on GitHub