Remove TanStack Query and Router devtools

This commit is contained in:
2026-04-23 21:22:24 +04:00
parent 6f8ced6f2f
commit ecf1afe6e4
3 changed files with 0 additions and 88 deletions

View File

@@ -35,8 +35,6 @@
}, },
"devDependencies": { "devDependencies": {
"@tailwindcss/vite": "4.1.16", "@tailwindcss/vite": "4.1.16",
"@tanstack/react-query-devtools": "5.100.0",
"@tanstack/react-router-devtools": "1.166.13",
"@tanstack/router-plugin": "1.167.22", "@tanstack/router-plugin": "1.167.22",
"@types/node": "22.19.17", "@types/node": "22.19.17",
"@types/react": "18.3.28", "@types/react": "18.3.28",

View File

@@ -1,21 +1,12 @@
import type { QueryClient } from '@tanstack/react-query' import type { QueryClient } from '@tanstack/react-query'
import { useSuspenseQuery } from '@tanstack/react-query' import { useSuspenseQuery } from '@tanstack/react-query'
import { createRootRouteWithContext, Outlet } from '@tanstack/react-router' import { createRootRouteWithContext, Outlet } from '@tanstack/react-router'
import { lazy, Suspense } from 'react'
import { Helmet } from 'react-helmet-async' import { Helmet } from 'react-helmet-async'
import { ErrorState } from '~/components/error-state' import { ErrorState } from '~/components/error-state'
import { Shell } from '~/components/layout/shell' import { Shell } from '~/components/layout/shell'
import { NotFound } from '~/components/not-found' import { NotFound } from '~/components/not-found'
import { globalsQuery, menusQuery } from '~/lib/queries' import { globalsQuery, menusQuery } from '~/lib/queries'
const TanStackRouterDevtools = import.meta.env.PROD
? () => null
: lazy(() => import('@tanstack/react-router-devtools').then((m) => ({ default: m.TanStackRouterDevtools })))
const ReactQueryDevtools = import.meta.env.PROD
? () => null
: lazy(() => import('@tanstack/react-query-devtools').then((m) => ({ default: m.ReactQueryDevtools })))
export const Route = createRootRouteWithContext<{ queryClient: QueryClient }>()({ export const Route = createRootRouteWithContext<{ queryClient: QueryClient }>()({
loader: async ({ context: { queryClient } }) => { loader: async ({ context: { queryClient } }) => {
await Promise.all([queryClient.ensureQueryData(globalsQuery), queryClient.ensureQueryData(menusQuery)]) await Promise.all([queryClient.ensureQueryData(globalsQuery), queryClient.ensureQueryData(menusQuery)])
@@ -43,10 +34,6 @@ function RootComponent() {
<Shell> <Shell>
<Outlet /> <Outlet />
</Shell> </Shell>
<Suspense>
<TanStackRouterDevtools />
<ReactQueryDevtools buttonPosition="bottom-left" />
</Suspense>
</> </>
) )
} }

73
pnpm-lock.yaml generated
View File

@@ -75,12 +75,6 @@ importers:
'@tailwindcss/vite': '@tailwindcss/vite':
specifier: 4.1.16 specifier: 4.1.16
version: 4.1.16(vite@6.4.2(@types/node@22.19.17)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.2)(tsx@4.21.0)(yaml@2.8.3)) version: 4.1.16(vite@6.4.2(@types/node@22.19.17)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.2)(tsx@4.21.0)(yaml@2.8.3))
'@tanstack/react-query-devtools':
specifier: 5.100.0
version: 5.100.0(@tanstack/react-query@5.100.1(react@18.3.1))(react@18.3.1)
'@tanstack/react-router-devtools':
specifier: 1.166.13
version: 1.166.13(@tanstack/react-router@1.168.23(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@tanstack/router-core@1.168.15)(csstype@3.2.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@tanstack/router-plugin': '@tanstack/router-plugin':
specifier: 1.167.22 specifier: 1.167.22
version: 1.167.22(@tanstack/react-router@1.168.23(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(vite@6.4.2(@types/node@22.19.17)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.2)(tsx@4.21.0)(yaml@2.8.3)) version: 1.167.22(@tanstack/react-router@1.168.23(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(vite@6.4.2(@types/node@22.19.17)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.2)(tsx@4.21.0)(yaml@2.8.3))
@@ -3305,32 +3299,11 @@ packages:
'@tanstack/query-core@5.100.1': '@tanstack/query-core@5.100.1':
resolution: {integrity: sha512-awvQhOO/2TrSCHE5LKKsXcvvj6WSBncwEcMFCB/ez0Qs0b17iyyivoGArNV3HFfXryZwCpnb/olsaBBKrIbtSw==} resolution: {integrity: sha512-awvQhOO/2TrSCHE5LKKsXcvvj6WSBncwEcMFCB/ez0Qs0b17iyyivoGArNV3HFfXryZwCpnb/olsaBBKrIbtSw==}
'@tanstack/query-devtools@5.100.0':
resolution: {integrity: sha512-6l1vHtvZSpqKVbbRokaX3HJ+MDRFaPHQ1odOVkIibWJafrLi9pMtZDtyQmno2h0J6dmLzH9PxsKKPpGf1Uh/pA==}
'@tanstack/react-query-devtools@5.100.0':
resolution: {integrity: sha512-TdDAmg6cqqPdBSZQuH7OghJPV03v8wnlEvHT9utN38D2mmD+I/Jb0bM5v7I5avNAPDerSKwlB/6AI1dWHinvug==}
peerDependencies:
'@tanstack/react-query': ^5.100.0
react: ^18 || ^19
'@tanstack/react-query@5.100.1': '@tanstack/react-query@5.100.1':
resolution: {integrity: sha512-UgWRLhQKprC37SsO6y1zRabOqDmM2gsdTNPbqTT35yl7kOOhwXU4nyfOiGHXPwoEFJV1IpSk85hjIFjNFWVpzw==} resolution: {integrity: sha512-UgWRLhQKprC37SsO6y1zRabOqDmM2gsdTNPbqTT35yl7kOOhwXU4nyfOiGHXPwoEFJV1IpSk85hjIFjNFWVpzw==}
peerDependencies: peerDependencies:
react: ^18 || ^19 react: ^18 || ^19
'@tanstack/react-router-devtools@1.166.13':
resolution: {integrity: sha512-6yKRFFJrEEOiGp5RAAuGCYsl81M4XAhJmLcu9PKj+HZle4A3dsP60lwHoqQYWHMK9nKKFkdXR+D8qxzxqtQbEA==}
engines: {node: '>=20.19'}
peerDependencies:
'@tanstack/react-router': ^1.168.15
'@tanstack/router-core': ^1.168.11
react: '>=18.0.0 || >=19.0.0'
react-dom: '>=18.0.0 || >=19.0.0'
peerDependenciesMeta:
'@tanstack/router-core':
optional: true
'@tanstack/react-router@1.168.23': '@tanstack/react-router@1.168.23':
resolution: {integrity: sha512-+GblieDnutG6oipJJPNtRJjrWF8QTZEG/l0532+BngFkVK48oHNOcvIkSoAFYftK1egAwM7KBxXsb0Ou+X6/MQ==} resolution: {integrity: sha512-+GblieDnutG6oipJJPNtRJjrWF8QTZEG/l0532+BngFkVK48oHNOcvIkSoAFYftK1egAwM7KBxXsb0Ou+X6/MQ==}
engines: {node: '>=20.19'} engines: {node: '>=20.19'}
@@ -3349,16 +3322,6 @@ packages:
engines: {node: '>=20.19'} engines: {node: '>=20.19'}
hasBin: true hasBin: true
'@tanstack/router-devtools-core@1.167.3':
resolution: {integrity: sha512-fJ1VMhyQgnoashTrP763c2HRc9kofgF61L7Jb3F6eTHAmCKtGVx8BRtiFt37sr3U0P0jmaaiiSPGP6nT5JtVNg==}
engines: {node: '>=20.19'}
peerDependencies:
'@tanstack/router-core': ^1.168.11
csstype: ^3.0.10
peerDependenciesMeta:
csstype:
optional: true
'@tanstack/router-generator@1.166.32': '@tanstack/router-generator@1.166.32':
resolution: {integrity: sha512-VuusKwEXcgKq+myq1JQfZogY8scTXIIeFls50dJ/UXgCXWp5n14iFreYNlg41wURcak2oA3M+t2TVfD0xUUD6g==} resolution: {integrity: sha512-VuusKwEXcgKq+myq1JQfZogY8scTXIIeFls50dJ/UXgCXWp5n14iFreYNlg41wURcak2oA3M+t2TVfD0xUUD6g==}
engines: {node: '>=20.19'} engines: {node: '>=20.19'}
@@ -5127,11 +5090,6 @@ packages:
resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me
goober@2.1.18:
resolution: {integrity: sha512-2vFqsaDVIT9Gz7N6kAL++pLpp41l3PfDuusHcjnGLfR6+huZkl6ziX+zgVC3ZxpqWhzH6pyDdGrCeDhMIvwaxw==}
peerDependencies:
csstype: ^3.0.10
google-auth-library@9.15.1: google-auth-library@9.15.1:
resolution: {integrity: sha512-Jb6Z0+nvECVz+2lzSMt9u98UsoakXxA2HGHMCxh+so3n90XgYWkq5dur19JAJV7ONiJY22yBTyJB1TSkvPq9Ng==} resolution: {integrity: sha512-Jb6Z0+nvECVz+2lzSMt9u98UsoakXxA2HGHMCxh+so3n90XgYWkq5dur19JAJV7ONiJY22yBTyJB1TSkvPq9Ng==}
engines: {node: '>=14'} engines: {node: '>=14'}
@@ -11690,30 +11648,11 @@ snapshots:
'@tanstack/query-core@5.100.1': {} '@tanstack/query-core@5.100.1': {}
'@tanstack/query-devtools@5.100.0': {}
'@tanstack/react-query-devtools@5.100.0(@tanstack/react-query@5.100.1(react@18.3.1))(react@18.3.1)':
dependencies:
'@tanstack/query-devtools': 5.100.0
'@tanstack/react-query': 5.100.1(react@18.3.1)
react: 18.3.1
'@tanstack/react-query@5.100.1(react@18.3.1)': '@tanstack/react-query@5.100.1(react@18.3.1)':
dependencies: dependencies:
'@tanstack/query-core': 5.100.1 '@tanstack/query-core': 5.100.1
react: 18.3.1 react: 18.3.1
'@tanstack/react-router-devtools@1.166.13(@tanstack/react-router@1.168.23(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@tanstack/router-core@1.168.15)(csstype@3.2.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
dependencies:
'@tanstack/react-router': 1.168.23(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@tanstack/router-devtools-core': 1.167.3(@tanstack/router-core@1.168.15)(csstype@3.2.3)
react: 18.3.1
react-dom: 18.3.1(react@18.3.1)
optionalDependencies:
'@tanstack/router-core': 1.168.15
transitivePeerDependencies:
- csstype
'@tanstack/react-router@1.168.23(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': '@tanstack/react-router@1.168.23(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
dependencies: dependencies:
'@tanstack/history': 1.161.6 '@tanstack/history': 1.161.6
@@ -11737,14 +11676,6 @@ snapshots:
seroval: 1.5.2 seroval: 1.5.2
seroval-plugins: 1.5.2(seroval@1.5.2) seroval-plugins: 1.5.2(seroval@1.5.2)
'@tanstack/router-devtools-core@1.167.3(@tanstack/router-core@1.168.15)(csstype@3.2.3)':
dependencies:
'@tanstack/router-core': 1.168.15
clsx: 2.1.1
goober: 2.1.18(csstype@3.2.3)
optionalDependencies:
csstype: 3.2.3
'@tanstack/router-generator@1.166.32': '@tanstack/router-generator@1.166.32':
dependencies: dependencies:
'@babel/types': 7.29.0 '@babel/types': 7.29.0
@@ -13753,10 +13684,6 @@ snapshots:
path-is-absolute: 1.0.1 path-is-absolute: 1.0.1
optional: true optional: true
goober@2.1.18(csstype@3.2.3):
dependencies:
csstype: 3.2.3
google-auth-library@9.15.1(encoding@0.1.13): google-auth-library@9.15.1(encoding@0.1.13):
dependencies: dependencies:
base64-js: 1.5.1 base64-js: 1.5.1