Skip to content

Commit da7576f

Browse files
committed
Comment out React Query Devtools
1 parent d1ca200 commit da7576f

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

jsapp/js/app.jsx

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,20 @@ class App extends React.Component {
145145
</bem.PageWrapper>
146146
</RootContextProvider>
147147

148-
{/* React Query Devtools. Development mode only.
149-
Lower button opacity to be less distracting
150-
if it shows up in a screenshot. */}
151-
<style>{'.tsqd-open-btn-container { opacity: 0.1 !important; };'}</style>
152-
<ReactQueryDevtools />
148+
149+
{/* React Query Devtools - GUI for inspecting and modifying query status
150+
(https://tanstack.com/query/latest/docs/framework/react/devtools)
151+
They only show up in dev server (NODE_ENV==='development')
152+
Additionally, we're keeping them commented out in `beta`
153+
(https://github.com/kobotoolbox/kpi/pull/5001#discussion_r1691067344)
154+
(1) Uncomment if you want to use these tools
155+
(2) The <style> tag lowers the toggle button opacity
156+
to make it less prominent in dev screenshots. */}
157+
{/*
158+
<style>{'.tsqd-open-btn-container { opacity: 0.1 !important; };'}</style>
159+
<ReactQueryDevtools />
160+
*/}
161+
153162

154163
</QueryClientProvider>
155164
</DocumentTitle>

0 commit comments

Comments
 (0)