Download src/router.tsx from launch-calcium/Grabber-In-Tanstack-Two: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/spaces/launch-calcium/Grabber-In-Tanstack-Two/resolve/main/src/router.tsx
- Command line
-
hf download hf://spaces/launch-calcium/Grabber-In-Tanstack-Two/src/router.tsx
-
curl -L -o router.tsx https://huggingface.co/spaces/launch-calcium/Grabber-In-Tanstack-Two/resolve/main/src/router.tsx
394 Bytes
| import { QueryClient } from "@tanstack/react-query"; | |
| import { createRouter } from "@tanstack/react-router"; | |
| import { routeTree } from "./routeTree.gen"; | |
| export const getRouter = () => { | |
| const queryClient = new QueryClient(); | |
| const router = createRouter({ | |
| routeTree, | |
| context: { queryClient }, | |
| scrollRestoration: true, | |
| defaultPreloadStaleTime: 0, | |
| }); | |
| return router; | |
| }; | |