diff --git a/index.jsx b/index.jsx index b0fdfa1bf..c1ae16c0d 100644 --- a/index.jsx +++ b/index.jsx @@ -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'; @@ -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') ); diff --git a/package-lock.json b/package-lock.json index 02e956d27..ed74ead0c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,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", @@ -3339,21 +3338,6 @@ "@swc/counter": "^0.1.3" } }, - "node_modules/@tanstack/match-sorter-utils": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/@tanstack/match-sorter-utils/-/match-sorter-utils-8.7.0.tgz", - "integrity": "sha512-OgfIPMHTfuw9JGcXCCoEHWFP/eSP2eyhCYwkrFnWBM3NbUPAgOlFP11DbM7cozDRVB0XbPr1tD4pLAtWKlVUVg==", - "dependencies": { - "remove-accents": "0.4.2" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/kentcdodds" - } - }, "node_modules/@tanstack/query-core": { "version": "4.36.1", "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-4.36.1.tgz", @@ -3389,25 +3373,6 @@ } } }, - "node_modules/@tanstack/react-query-devtools": { - "version": "4.36.1", - "resolved": "https://registry.npmjs.org/@tanstack/react-query-devtools/-/react-query-devtools-4.36.1.tgz", - "integrity": "sha512-WYku83CKP3OevnYSG8Y/QO9g0rT75v1om5IvcWUwiUZJ4LanYGLVCZ8TdFG5jfsq4Ej/lu2wwDAULEUnRIMBSw==", - "dependencies": { - "@tanstack/match-sorter-utils": "^8.7.0", - "superjson": "^1.10.0", - "use-sync-external-store": "^1.2.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" - }, - "peerDependencies": { - "@tanstack/react-query": "^4.36.1", - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" - } - }, "node_modules/@tektoncd/dashboard-components": { "resolved": "packages/components", "link": true @@ -5176,20 +5141,6 @@ "node": ">= 0.6" } }, - "node_modules/copy-anything": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-3.0.5.tgz", - "integrity": "sha512-yCEafptTtb4bk7GLEQoM8KVJpxAfdBJYaXyzQEgQQQgYrZiDp8SJmGKlYza6CYjEDNstAdNdKA3UuoULlEbS6w==", - "dependencies": { - "is-what": "^4.1.8" - }, - "engines": { - "node": ">=12.13" - }, - "funding": { - "url": "https://github.com/sponsors/mesqueeb" - } - }, "node_modules/copy-to-clipboard": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/copy-to-clipboard/-/copy-to-clipboard-3.3.3.tgz", @@ -8724,17 +8675,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-what": { - "version": "4.1.16", - "resolved": "https://registry.npmjs.org/is-what/-/is-what-4.1.16.tgz", - "integrity": "sha512-ZhMwEosbFJkA0YhFnNDgTM4ZxDRsS6HqTo7qsZM08fehyRYIYa0yHu5R6mgo1n/8MgaPBXiPimPD77baVFYg+A==", - "engines": { - "node": ">=12.13" - }, - "funding": { - "url": "https://github.com/sponsors/mesqueeb" - } - }, "node_modules/is-wsl": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", @@ -10728,11 +10668,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/remove-accents": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/remove-accents/-/remove-accents-0.4.2.tgz", - "integrity": "sha512-7pXIJqJOq5tFgG1A2Zxti3Ht8jJF337m4sowbuHsW30ZnkQFnDzy9qBNhgzX8ZLW4+UBcXiiR7SwR6pokHsxiA==" - }, "node_modules/request-progress": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/request-progress/-/request-progress-3.0.0.tgz", @@ -11940,17 +11875,6 @@ "resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.0.0.tgz", "integrity": "sha512-OPhtyEjyyN9x3nhPsu76f52yUGXiZcgvsrFVtvTkyGRQJ0XK+GPc6ov1z+lRpbeabka+MYEQxOYRnt5nF30aMw==" }, - "node_modules/superjson": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/superjson/-/superjson-1.10.0.tgz", - "integrity": "sha512-ks6I5fm5KXUbDqt4Epe1VwkKDaC9+kIj5HF7yhiHjChFne0EkFqsnTv1mdHE2IT6fq2CzLC3zeA/fw0BRIoNwA==", - "dependencies": { - "copy-anything": "^3.0.2" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", diff --git a/package.json b/package.json index 5590e7d8f..001e93143 100644 --- a/package.json +++ b/package.json @@ -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",