router
router copied to clipboard
Devtools visible in production build
Describe the bug
Currently, the devtools are also displayed in the production build. According to the documentation, they should not be displayed.
Version
"@tanstack/react-location": "^3.6.1",
"@tanstack/react-location-devtools": "^3.4.4",
Expected behavior
Devtools are displayed only in the development environment.
Additional context
Initially, the problem was fixed with commit 5f019c812808e084c6b48a6a8f30b61efdc2639c.
@tannerlinsley is it possible to get this resolved? react-query devtools don't show in production builds but react-location does.
Because of the way the new build system works we can’t build it the same way as React Query. For now, I would suggest creating a dynamic import of the React Location devtools that depends on your build systems environment variable
Tanner Linsley On Mar 16, 2022, 2:15 PM -0600, Matt Przybylski @.***>, wrote:
@tannerlinsley is it possible to get this resolved? react-query devtools don't show in production builds but react-location does. — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>
Can we get the documentation updated accordingly?