Skip to main content

useQueryRefresher

Callable

  • useQueryRefresher<TChainId, TQuery>(builder: TQuery, options?: ChainHookOptions<TChainId>): (...args: []) => void

  • Hook for refreshing cached query.


    Type parameters

    • TChainId: any
    • TQuery: any

    Parameters

    • builder: TQuery

      The function to create the query

    • optionaloptions: ChainHookOptions<TChainId>

      Additional options

    Returns (...args: []) => void

    The function to refresh the query

      • (...args: []): void
      • Parameters

        • rest...args: []

        Returns void