Open History to see the last commit
1import { makeEnvironmentProviders } from '@angular/core'
2import { queryFeature } from '@tanstack/angular-query/internal'
3import type { DevtoolsOptions, WithDevtools, WithDevtoolsFn } from './types'
4β
5// Stub which replaces `withDevtools` in production builds
6/**
7 * Provides an inert Query feature for production builds.
8 * @returns A feature that creates no devtools or subscriptions.
9 */
10export const withDevtools: WithDevtools = () =>
11 queryFeature(makeEnvironmentProviders([]))
12β
13export type { DevtoolsOptions, WithDevtools, WithDevtoolsFn }