useLazyLoadQuery
Callable
Type parameters
- TQuery: false | (builder: Query<[], TDescriptor>) => any
- TDescriptor: any
- TChainId: ChainId
Parameters
builder: TQuery
The function to create the query
optionaloptions: ChainHookOptions<TChainId>
Additional options
Returns TQuery extends Falsy ? typeof idle : FalsyGuard<ReturnType<Exclude<TQuery, Falsy>>, FlatHead<InferQueryPayload<Exclude<ReturnType<Exclude<TQuery, Falsy>>, Falsy>>>, typeof idle>
The data response
Hook for querying data from chain, and returning the response.