MCPcopy Create free account
hub / github.com/SvelteStack/svelte-query / fetch

Method fetch

src/queryCore/core/queryObserver.ts:354–361  ·  view source on GitHub ↗
(
    fetchOptions?: ObserverFetchOptions
  )

Source from the content-addressed store, hash-verified

352 }
353
354 protected fetch(
355 fetchOptions?: ObserverFetchOptions
356 ): Promise<QueryObserverResult<TData, TError>> {
357 return this.executeFetch(fetchOptions).then(() => {
358 this.updateResult()
359 return this.currentResult
360 })
361 }
362
363 private executeFetch(
364 fetchOptions?: ObserverFetchOptions

Callers 3

refetchMethod · 0.95
fetchOptimisticMethod · 0.45
executeFetchMethod · 0.45

Calls 2

executeFetchMethod · 0.95
updateResultMethod · 0.95

Tested by

no test coverage detected