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

stub.ts

12 lines345 Bytes

1import { noop } from '@tanstack/query-core'
2import type { InjectDevtoolsPanel } from './types'
3​
4/**
5 * Replaces `injectDevtoolsPanel` in production builds: returns a panel whose
6 * `destroy` does nothing.
7 *
8 * @returns A devtools panel that does nothing.
9 */
10export const injectDevtoolsPanel: InjectDevtoolsPanel = () => ({
11 destroy: noop,
12})