Function: createLazyLoadQuery()
createLazyLoadQuery<
TQuery>(gqlQuery,variables,options?):DataStore<TQuery["response"]>
Defined in: index.d.mts:131
Reads query data and subscribes to store updates for the current component.
It fetches according to the provided fetch policy and returns a reactive data store containing the query response.
Type Parameters
TQuery
TQuery extends OperationType
Parameters
gqlQuery
MaybeAccessor<GraphQLTaggedNode>
GraphQL query document.
variables
MaybeAccessor<VariablesOf<TQuery>>
Query variables or an accessor for reactive variables.
options?
deferStream?
boolean
Whether to defer the SSR stream until the data is resolved.
fetchPolicy?
MaybeAccessor<FetchPolicy | undefined>
Query fetch policy.
networkCacheConfig?
MaybeAccessor<CacheConfig | undefined>
Network cache configuration.
Returns
DataStore<TQuery["response"]>
A DataStore containing the query data state.
Last updated: 3/5/26, 7:43 PM
Edit this page on GitHub