Open History to see the last commit
1import { noop } from '@tanstack/query-core'
2import type {
3 DevtoolsPanelOptions,
4 DevtoolsPanelRef,
5 InjectDevtoolsPanel,
6} from './types'
7β
8/**
9 * Replaces `injectDevtoolsPanel` in production builds: returns a panel whose `destroy` does nothing.
10 * @returns A devtools panel that does nothing.
11 */
12export const injectDevtoolsPanel: InjectDevtoolsPanel = () => ({
13 destroy: noop,
14})
15β
16export type { InjectDevtoolsPanel, DevtoolsPanelOptions, DevtoolsPanelRef }