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

Function finalize

packages/query-core/src/thenable.ts:58–64  ·  view source on GitHub ↗
(data: Fulfilled<T> | Rejected)

Source from the content-addressed store, hash-verified

56 })
57
58 function finalize(data: Fulfilled<T> | Rejected) {
59 Object.assign(thenable, data)
60
61 // clear pending props props to avoid calling them twice
62 delete (thenable as Partial<PendingThenable<T>>).resolve
63 delete (thenable as Partial<PendingThenable<T>>).reject
64 }
65
66 thenable.resolve = (value) => {
67 finalize({

Callers 1

pendingThenableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected