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

Function createClientSubscriber

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

Source from the content-addressed store, hash-verified

178 }
179
180 const createClientSubscriber = () => {
181 const obs = observer()
182 return obs.subscribe((result) => {
183 observerResult = result
184 queueMicrotask(() => {
185 if (unsubscribe) {
186 refetch()
187 }
188 })
189 })
190 }
191
192 function setStateWithReconciliation(res: typeof observerResult) {
193 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