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

Method recreateThenable

packages/query-core/src/queryObserver.ts:611–618  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

609 * Create a new thenable and result promise when the results have changed
610 */
611 const recreateThenable = () => {
612 const pending =
613 (this.#currentThenable =
614 nextResult.promise =
615 pendingThenable())
616
617 finalizeThenableIfPossible(pending)
618 }
619
620 const prevThenable = this.#currentThenable
621 switch (prevThenable.status) {

Callers

nothing calls this directly

Calls 1

pendingThenableFunction · 0.90

Tested by

no test coverage detected