How to use dev tools in production? #1821
Unanswered
vipinnair22
asked this question in
General
Replies: 2 comments
-
|
Did you find a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Just import the devtools like this import { ReactQueryDevtools } from 'react-query/devtools/development';Then they'll render on all (DEV or PROD) environments the same way. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to enable dev tools in production mode based on a flag. I found that there's a min.js file that could be used.
https://unpkg.com/browse/react-query@3.3.0/dist/react-query-devtools.production.min.js
I'm trying to figure out how to import this file and render the dev tools component. Any help is appreciated. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions