useQueryLoader
Callable
Returns <TChainId, TQuery>(builder: TQuery, options?: ChainHookOptions<TChainId>) => void
The function to load queries
Type parameters
- TChainId: any
- TQuery: (builder: Query<[], ChainDescriptorOf<TChainId>>) => Query<QueryInstruction<ChainDescriptorOf<TChainId>>[], ChainDescriptorOf<TChainId>>
Parameters
builder: TQuery
optionaloptions: ChainHookOptions<TChainId>
Returns void
Hook for loading queries without suspending.