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

Function setResult

packages/lit-query/src/controllers/BaseController.ts:136–145  ·  view source on GitHub ↗
(next: TResult)

Source from the content-addressed store, hash-verified

134 }
135
136 protected setResult(next: TResult): void {
137 if (Object.is(this.result, next)) {
138 return
139 }
140
141 this.result = next
142 if (!this.isHostUpdating) {
143 this.queueUpdate()
144 }
145 }
146
147 get current(): TResult {
148 if (this.queryClientResolutionState === 'missing') {

Callers 3

PageFunction · 0.85
PageFunction · 0.85
useMutationStateFunction · 0.85

Calls

no outgoing calls

Tested by 2

PageFunction · 0.68
PageFunction · 0.68