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

Function setStateWithReconciliation

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

Source from the content-addressed store, hash-verified

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

Callers 3

createDeepSignalFunction · 0.85
useBaseQueryFunction · 0.85
onHydratedFunction · 0.85

Calls 1

reconcileFnFunction · 0.85

Tested by

no test coverage detected