Switch path alias from @ to ~, add Prettier with organize-imports
This commit is contained in:
@@ -1,22 +1,18 @@
|
||||
import { Outlet, createRootRouteWithContext } from '@tanstack/react-router'
|
||||
import type { QueryClient } from '@tanstack/react-query'
|
||||
import { useSuspenseQuery } from '@tanstack/react-query'
|
||||
import { createRootRouteWithContext, Outlet } from '@tanstack/react-router'
|
||||
import { lazy, Suspense } from 'react'
|
||||
import { Helmet } from 'react-helmet-async'
|
||||
import { useSuspenseQuery } from '@tanstack/react-query'
|
||||
import { globalsQuery, menusQuery } from '@/lib/queries'
|
||||
import { Shell } from '@/components/layout/shell'
|
||||
import { Shell } from '~/components/layout/shell'
|
||||
import { globalsQuery, menusQuery } from '~/lib/queries'
|
||||
|
||||
const TanStackRouterDevtools = import.meta.env.PROD
|
||||
? () => null
|
||||
: lazy(() =>
|
||||
import('@tanstack/react-router-devtools').then((m) => ({ default: m.TanStackRouterDevtools })),
|
||||
)
|
||||
: 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 })),
|
||||
)
|
||||
: lazy(() => import('@tanstack/react-query-devtools').then((m) => ({ default: m.ReactQueryDevtools })))
|
||||
|
||||
export const Route = createRootRouteWithContext<{ queryClient: QueryClient }>()({
|
||||
loader: async ({ context: { queryClient } }) => {
|
||||
|
||||
Reference in New Issue
Block a user