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

Method onQueryUpdate

packages/query-core/src/queryObserver.ts:865–871  ·  view source on GitHub ↗

* Updates the observer's result when the observed query changes, and reschedules its timers if it * has listeners. * @internal

()

Source from the content-addressed store, hash-verified

863 * @internal
864 */
865 onQueryUpdate(): void {
866 this.updateResult()
867
868 if (this.hasListeners()) {
869 this.#updateTimers()
870 }
871 }
872}
873
874/**

Callers 1

#dispatchMethod · 0.80

Calls 3

updateResultMethod · 0.95
#updateTimersMethod · 0.95
hasListenersMethod · 0.80

Tested by

no test coverage detected