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

Function get

packages/angular-query/src/__tests__/inject-query-lifecycle.test.ts:36–41  ·  view source on GitHub ↗
(token: unknown)

Source from the content-addressed store, hash-verified

34 }
35 const injector = {
36 get(token: unknown) {
37 if (token === NgZone) return { run: (callback: () => void) => callback() }
38 if (token === PendingTasks) return pendingTasks
39 if (token === DestroyRef) return destroyRef
40 throw new Error(`Unexpected token: ${String(token)}`)
41 },
42 }
43
44 return {

Callers

nothing calls this directly

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected