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

Function injectQueryZone

packages/angular-query/src/utils/inject-query-zone.ts:7–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 * @returns A function that runs callbacks outside the injected NgZone.
6 */
7export function injectQueryZone() {
8 const ngZone = inject(NgZone)
9 return <T>(fn: () => T): T => ngZone.runOutsideAngular(fn)
10}

Callers 7

injectBaseQueryFunction · 0.90
injectInfiniteQueryFunction · 0.90
provideTanStackQueryFunction · 0.90
injectQueriesFunction · 0.90
injectMutationFunction · 0.90
injectQueryFunction · 0.90
injectExternalStoreFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected