feat: add @tanstack/react-query, and DataTables packages
This commit is contained in:
+8
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user