useQueryRefresher()
function useQueryRefresher<TChainId, TQuery>(query, options?): () => void;
Defined in: packages/react/src/hooks/use-query-refresher.ts:15
Hook for refreshing cached query.
Type Parameters
| Type Parameter |
|---|
TChainId extends string | number | undefined |
TQuery extends QueryArgument<TChainId> |
Parameters
| Parameter | Type | Description |
|---|---|---|
query | TQuery | The function to create the query |
options? | Partial<ChainOptions<TChainId>> | Additional options |
Returns
The function to refresh the query
(): void;
Returns
void
Deprecated
Use the useStore hook and call invalidateQuery instead.