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

stub.ts

12 lines301 Bytes

1import type { WithDevtools } from './types'
2​
3/**
4 * Replaces `withDevtools` in production builds: returns the devtools feature
5 * with no providers.
6 *
7 * @returns A devtools feature that does nothing.
8 */
9export const withDevtools: WithDevtools = () => ({
10 ɵkind: 'Devtools',
11 ɵproviders: [],
12})