Skip to main content

useQueryRefresher

Callable

  • useQueryRefresher<TChainId, TQuery>(query: TQuery, options?: Partial<ChainOptions<TChainId>>): () => void
  • useQueryRefresher<TChainIds, TOptions>(options: TOptions & { [ P in string | number | symbol ]: QueryOptions<TChainIds[P<P>]> }): () => void

  • Hook for refreshing cached query.


    Type parameters

    • TChainId: any
    • TQuery: any

    Parameters

    • query: TQuery

      The function to create the query

    • optionaloptions: Partial<ChainOptions<TChainId>>

      Additional options

    Returns () => void

    The function to refresh the query

      • (): void
      • Returns void