Skip to content

Commit

Permalink
Remove React Query dev tools
Browse files Browse the repository at this point in the history
Unused and undocumented. We can restore them in future if needed.
  • Loading branch information
AlanGreene committed Nov 26, 2024
1 parent 3a97fda commit 8dd3489
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 82 deletions.
5 changes: 0 additions & 5 deletions index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ limitations under the License.
import { StrictMode } from 'react';
import ReactDOM from 'react-dom';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';

import { defaultQueryFn } from './src/api/utils';
import { setTheme } from './src/utils';
Expand All @@ -35,15 +34,11 @@ const queryClient = new QueryClient({

setTheme();

const enableReactQueryDevTools =
localStorage.getItem('tkn-devtools-rq') === 'true';

ReactDOM.render(
<QueryClientProvider client={queryClient}>
<StrictMode>
<App />
</StrictMode>
{enableReactQueryDevTools && <ReactQueryDevtools initialIsOpen={false} />}
</QueryClientProvider>,
document.getElementById('root')
);
76 changes: 0 additions & 76 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"@carbon/react": "^1.70.0",
"@codemirror/legacy-modes": "^6.4.2",
"@tanstack/react-query": "^4.36.1",
"@tanstack/react-query-devtools": "^4.36.1",
"@tektoncd/dashboard-components": "*",
"@tektoncd/dashboard-utils": "*",
"@uiw/react-codemirror": "^4.23.6",
Expand Down

0 comments on commit 8dd3489

Please sign in to comment.