Skip to content

Commit f7854e0

Browse files
authored
docs(devTools): Clarify node env logic for devtools (TanStack#2711)
Clarify node env logic for devTools to make it clear that the environment should be set to 'development'
1 parent 10f3d7b commit f7854e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/src/pages/devtools.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ The devtools are bundle split into the `react-query/devtools` package. No need t
1717
import { ReactQueryDevtools } from 'react-query/devtools'
1818
```
1919

20-
By default, React Query Devtools are not included in production bundles when `process.env.NODE_ENV === 'production'`, so you don't need to worry about excluding them during a production build.
21-
20+
By default, React Query Devtools are only included in bundles when `process.env.NODE_ENV === 'development'`, so you don't need to worry about excluding them during a production build.
2221
## Floating Mode
2322

2423
Floating Mode will mount the devtools as a fixed, floating element in your app and provide a toggle in the corner of the screen to show and hide the devtools. This toggle state will be stored and remembered in localStorage across reloads.

0 commit comments

Comments
 (0)