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

stub.ts

10 lines339 Bytes

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