feat: add @tanstack/react-query, and DataTables packages

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