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

Function setStateWithReconciliation

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

Source from the content-addressed store, hash-verified

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

Callers 3

createDeepSignalFunction · 0.85
useBaseQueryFunction · 0.85
onHydratedFunction · 0.85

Calls 1

reconcileFnFunction · 0.85

Tested by

no test coverage detected