Describe the bug
Im unable to use devtools in production. When I open the Tanstack query devtool, I get the following issues:
Only happens in prod build. When running locally its fine.
import { TanStackDevtools } from "@tanstack/react-devtools"
import { ReactQueryDevtoolsPanel } from "@tanstack/react-query-devtools/production"
...
<TanStackDevtools
plugins={[
{
name: "TanStack Query",
render: <ReactQueryDevtoolsPanel client={queryClient} />,
defaultOpen: true,
},
formDevtoolsPlugin(),
]}
/>
The versions:
{
"@tanstack/react-devtools": "0.10.5",
"@tanstack/react-query-devtools": "5.100.11"
}
Your minimal, reproducible example
N/A
Steps to reproduce
- Install those deps as shown above
- Run
yarn build. Im using Vite
- Run
yarn preview
- Open Tanstack devtool
- Observe that you'll get
Cannot read properties of undefined (reading 'fetchStatus')
Expected behavior
Expected behaviour should be that I show be seeing the tanstack queries in devtool
How often does this bug happen?
Every time
Screenshots or Videos
Platform
MacOS
Tanstack Query adapter
None
TanStack Query version
5.100.11
TypeScript version
No response
Additional context
No response
Describe the bug
Im unable to use devtools in production. When I open the Tanstack query devtool, I get the following issues:
Only happens in prod build. When running locally its fine.
The versions:
{ "@tanstack/react-devtools": "0.10.5", "@tanstack/react-query-devtools": "5.100.11" }Your minimal, reproducible example
N/A
Steps to reproduce
yarn build. Im using Viteyarn previewCannot read properties of undefined (reading 'fetchStatus')Expected behavior
Expected behaviour should be that I show be seeing the tanstack queries in devtool
How often does this bug happen?
Every time
Screenshots or Videos
Platform
MacOS
Tanstack Query adapter
None
TanStack Query version
5.100.11
TypeScript version
No response
Additional context
No response