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

Function createClientSubscriber

packages/solid-query/src/useBaseQuery.ts:177–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175 }
176
177 const createClientSubscriber = () => {
178 const obs = observer()
179 return obs.subscribe((result) => {
180 observerResult = result
181 queueMicrotask(() => {
182 if (unsubscribe) {
183 refetch()
184 }
185 })
186 })
187 }
188
189 function setStateWithReconciliation(res: typeof observerResult) {
190 const opts = observer().options

Callers 2

useBaseQueryFunction · 0.85
onHydratedFunction · 0.85

Calls 2

refetchFunction · 0.85
subscribeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…