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

Function createResult

packages/svelte-query/src/createBaseQuery.svelte.ts:70–75  ·  view source on GitHub ↗

* Computes the observer's current result for the resolved options, tracking property access unless * `notifyOnChangeProps` is set. * @returns The current query result.

()

Source from the content-addressed store, hash-verified

68 * @returns The current query result.
69 */
70 function createResult() {
71 const result = observer.getOptimisticResult(resolvedOptions)
72 return !resolvedOptions.notifyOnChangeProps
73 ? observer.trackResult(result)
74 : result
75 }
76 const [query, update] = createRawRef(
77 // svelte-ignore state_referenced_locally - intentional, initial value
78 createResult(),

Callers 1

createBaseQueryFunction · 0.70

Calls 2

getOptimisticResultMethod · 0.45
trackResultMethod · 0.45

Tested by

no test coverage detected