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

Method readCurrent

packages/lit-query/src/createQueryController.ts:201–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199 }
200
201 readCurrent(): QueryObserverResult<TData, TError> {
202 if (this.observer) {
203 this.assignObserverResult(this.observer.getCurrentResult())
204 }
205
206 return this.current
207 }
208
209 private subscribe(): void {
210 if (!this.observer) {

Callers 1

createQueryControllerFunction · 0.95

Calls 2

assignObserverResultMethod · 0.95
getCurrentResultMethod · 0.45

Tested by

no test coverage detected