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

Method getCurrentResult

packages/query-core/src/queriesObserver.ts:213–215  ·  view source on GitHub ↗

* Returns the most recently computed array of `QueryObserverResult`s, one * per observed query, in the same order as the queries passed to the * constructor or `setQueries`. * @returns The current results. * @example * ```ts * const results = observer.getCurrentResult() * const

()

Source from the content-addressed store, hash-verified

211 * ```
212 */
213 getCurrentResult(): Array<QueryObserverResult> {
214 return this.#result
215 }
216
217 /**
218 * Returns the underlying `Query` instances currently being observed, in

Callers 3

setQueriesMethod · 0.45
getOptimisticResultMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected