Skip to main content

useQueryRefresher

Callable

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

  • Hook for refreshing cached query.


    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 (...args: []) => void

    The function to refresh the query

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

        • rest...args: []

        Returns void