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

stub.ts

13 lines371 Bytes

1import { noop } from '@tanstack/query-core'
2import type {
3 DevtoolsPanelOptions,
4 DevtoolsPanelRef,
5 InjectDevtoolsPanel,
6} from './types'
7​
8// Stub which replaces `injectDevtoolsPanel` in production builds
9export const injectDevtoolsPanel: InjectDevtoolsPanel = () => ({
10 destroy: noop,
11})
12​
13export type { InjectDevtoolsPanel, DevtoolsPanelOptions, DevtoolsPanelRef }