Hide react query devtools icon #6892
Replies: 2 comments
|
We followed this example to conditionally render the component: https://tanstack.com/query/latest/docs/framework/react/devtools#devtools-in-production |
|
would like the same property to hide icon. This worked for me. Sorry code block not working... function HiddenDevtools() { // Checks Vite context first, falls back to Webpack/Next.js environment format if (!isDevelopment) { return ( Then just put |
Uh oh!
There was an error while loading. Please reload this page.
While development, we would not require react query devtools everytime, thus we should have a prop for the devtools icon, so that it is displayed or not, as per the developer needs
All reactions