refactor: remove devtools barrel files and update direct import paths for devtool loaders

This commit is contained in:
yyh 2025-12-29 16:16:35 +08:00
parent bb5a654f8d
commit b9cfef854a
No known key found for this signature in database
5 changed files with 2 additions and 8 deletions

View File

@ -1,2 +0,0 @@
export * from './react-scan'
export * from './tanstack'

View File

@ -1,2 +0,0 @@
export { ReactScanLoader } from './loader'
export { ReactScan } from './scan'

View File

@ -1,2 +0,0 @@
export { TanStackDevtoolsWrapper } from './devtools'
export { TanStackDevtoolsLoader } from './loader'

View File

@ -8,7 +8,7 @@ import { getLocaleOnServer } from '@/i18n-config/server'
import { DatasetAttr } from '@/types/feature' import { DatasetAttr } from '@/types/feature'
import { cn } from '@/utils/classnames' import { cn } from '@/utils/classnames'
import BrowserInitializer from './components/browser-initializer' import BrowserInitializer from './components/browser-initializer'
import { ReactScanLoader } from './components/devtools' import { ReactScanLoader } from './components/devtools/react-scan/loader'
import I18nServer from './components/i18n-server' import I18nServer from './components/i18n-server'
import SentryInitializer from './components/sentry-initializer' import SentryInitializer from './components/sentry-initializer'
import RoutePrefixHandle from './routePrefixHandle' import RoutePrefixHandle from './routePrefixHandle'

View File

@ -2,7 +2,7 @@
import type { FC, PropsWithChildren } from 'react' import type { FC, PropsWithChildren } from 'react'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query' import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { TanStackDevtoolsLoader } from '@/app/components/devtools' import { TanStackDevtoolsLoader } from '@/app/components/devtools/tanstack/loader'
const STALE_TIME = 1000 * 60 * 30 // 30 minutes const STALE_TIME = 1000 * 60 * 30 // 30 minutes