MCPcopy
hub / github.com/TanStack/query / setStateWithReconciliation

Function setStateWithReconciliation

packages/solid-query/src/useBaseQuery.ts:189–202  ·  view source on GitHub ↗
(res: typeof observerResult)

Source from the content-addressed store, hash-verified

187 }
188
189 function setStateWithReconciliation(res: typeof observerResult) {
190 const opts = observer().options
191 // @ts-expect-error - Reconcile option is not correctly typed internally
192 const reconcileOptions = opts.reconcile
193
194 setState((store) => {
195 return reconcileFn(
196 store,
197 res,
198 reconcileOptions === undefined ? false : reconcileOptions,
199 opts.queryHash,
200 )
201 })
202 }
203
204 function createDeepSignal<T>(): Signal<T> {
205 return [

Callers 3

createDeepSignalFunction · 0.85
useBaseQueryFunction · 0.85
onHydratedFunction · 0.85

Calls 1

reconcileFnFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…