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

Method getCurrentResult

packages/query-core/src/queriesObserver.ts:210–212  ·  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`. * * @example * ```ts * const results = observer.getCurrentResult() * const data = results.map((result) =>

()

Source from the content-addressed store, hash-verified

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

Callers 2

setQueriesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected