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

Method refetch

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

Source from the content-addressed store, hash-verified

277 }
278
279 refetch({ ...options }: RefetchOptions = {}): Promise<
280 QueryObserverResult<TData, TError>
281 > {
282 return this.fetch({
283 ...options,
284 })
285 }
286
287 fetchOptimistic(
288 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