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

Method getCurrentResult

packages/query-core/src/queriesObserver.ts:219–221  ·  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

217 * ```
218 */
219 getCurrentResult(): Array<QueryObserverResult> {
220 return this.#result
221 }
222
223 /**
224 * Returns the underlying `Query` instances currently being observed, in

Callers 2

setQueriesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected