template: tanstack_start_ts_current-40f3c252c0da

This commit is contained in:
Lovable
2025-01-01 00:00:00 +00:00
commit cb75921659
71 changed files with 6545 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
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;
};