MCPcopy Create free account
hub / github.com/TanStack/query / refetch

Method refetch

packages/query-core/src/queryObserver.ts:280–286  ·  view source on GitHub ↗
({ ...options }: RefetchOptions = {})

Source from the content-addressed store, hash-verified

278 }
279
280 refetch({ ...options }: RefetchOptions = {}): Promise<
281 QueryObserverResult<TData, TError>
282 > {
283 return this.fetch({
284 ...options,
285 })
286 }
287
288 fetchOptimistic(
289 options: QueryObserverOptions<

Callers 15

QueryControllerClass · 0.80
refetchFunction · 0.80
getOptimisticResultFunction · 0.80
useQuery.test.tsFile · 0.80
useQueries.test.tsFile · 0.80
PageFunction · 0.80
PageFunction · 0.80

Calls 1

fetchMethod · 0.95

Tested by 11

PageFunction · 0.64
PageFunction · 0.64
PageFunction · 0.64
PageFunction · 0.64
PageFunction · 0.64
PageFunction · 0.64
PageFunction · 0.64
PageFunction · 0.64
PageFunction · 0.64
PageFunction · 0.64
FirstComponentFunction · 0.64