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

Function createClientSubscriber

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

Source from the content-addressed store, hash-verified

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