Skip to main content

useQueryLoader

Callable

  • useQueryLoader(): <TChainId, TQuery>(builder: TQuery, options?: ChainHookOptions<TChainId>) => void

  • Hook for loading queries without suspending.


    Returns <TChainId, TQuery>(builder: TQuery, options?: ChainHookOptions<TChainId>) => void

    The function to load queries

      • <TChainId, TQuery>(builder: TQuery, options?: ChainHookOptions<TChainId>): void
      • Type parameters

        • TChainId: any
        • TQuery: (builder: Query<[], ChainDescriptorOf<TChainId>>) => Query<QueryInstruction<ChainDescriptorOf<TChainId>>[], ChainDescriptorOf<TChainId>>

        Parameters

        • builder: TQuery
        • optionaloptions: ChainHookOptions<TChainId>

        Returns void