Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

stub.ts

9 lines414 Bytes

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
6export const withDevtools: WithDevtools = () =>
7 queryFeature(makeEnvironmentProviders([]))
8​
9export type { DevtoolsOptions, WithDevtools, WithDevtoolsFn }