useLazyLoadQueryWithRefresh
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 [data: TQuery extends false ? any : FalsyGuard<ReturnType<Exclude<TQuery, false>>, any, any, false>, refresh: (...args: []) => void]
The data response & a function to refresh it
Hook for querying data from chain, returning the response & a refresher function.