feat: remove react-query dependency and simplify App component

This commit is contained in:
Ardeman
2025-02-27 16:48:55 +08:00
parent a333b7924f
commit 581e99c4b3
3 changed files with 1 additions and 27 deletions
+1 -8
View File
@@ -1,4 +1,3 @@
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import type { ReactNode } from 'react'
import {
isRouteErrorResponse,
@@ -58,14 +57,8 @@ export function Layout({ children }: { children: ReactNode }) {
)
}
const queryClient = new QueryClient()
export default function App() {
return (
<QueryClientProvider client={queryClient}>
<Outlet />
</QueryClientProvider>
)
return <Outlet />
}
export function ErrorBoundary({ error }: Route.ErrorBoundaryProps) {