Open History to see the last commit
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})