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

Method refetch

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

Source from the content-addressed store, hash-verified

295 }
296
297 refetch({ ...options }: RefetchOptions = {}): Promise<
298 QueryObserverResult<TData, TError>
299 > {
300 return this.fetch({
301 ...options,
302 })
303 }
304
305 fetchOptimistic(
306 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