Skip to content

Commit 27d0f59

Browse files
allow devtools panel in production build
1 parent aab51d9 commit 27d0f59

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

packages/react-query-devtools/src/index.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ export const ReactQueryDevtools: (typeof Devtools)['ReactQueryDevtools'] =
1010
}
1111
: Devtools.ReactQueryDevtools
1212

13-
export const ReactQueryDevtoolsPanel: (typeof DevtoolsPanel)['ReactQueryDevtoolsPanel'] =
14-
process.env.NODE_ENV !== 'development'
15-
? function () {
16-
return null
17-
}
18-
: DevtoolsPanel.ReactQueryDevtoolsPanel
13+
export const ReactQueryDevtoolsPanel: (typeof DevtoolsPanel)['ReactQueryDevtoolsPanel'] = DevtoolsPanel.ReactQueryDevtoolsPanel
1914

2015
export type DevtoolsPanelOptions = DevtoolsPanel.DevtoolsPanelOptions

packages/solid-query-devtools/src/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ export const SolidQueryDevtools: typeof SolidQueryDevtoolsComp = isDev
99
return null
1010
}
1111

12-
export const SolidQueryDevtoolsPanel: typeof SolidQueryDevtoolsCompPanel = isDev
13-
? clientOnly(() => import('./devtoolsPanel'))
14-
: function () {
15-
return null
16-
}
12+
export const SolidQueryDevtoolsPanel: typeof SolidQueryDevtoolsCompPanel = clientOnly(() => import('./devtoolsPanel'))
1713

1814
export type { DevtoolsPanelOptions } from './devtoolsPanel'

0 commit comments

Comments
 (0)