chore: initialize project
Deploy monie-web to prod (kaniko) / build-and-deploy (push) Successful in 12m10s
Deploy monie-web to prod (kaniko) / build-and-deploy (push) Successful in 12m10s
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { createRouter as createTanStackRouter } from '@tanstack/react-router';
|
||||
|
||||
import { getContext } from './integrations/tanstack-query/root-provider';
|
||||
import { routeTree } from './routeTree.gen';
|
||||
|
||||
export function getRouter() {
|
||||
const context = getContext();
|
||||
|
||||
const router = createTanStackRouter({
|
||||
routeTree,
|
||||
context,
|
||||
scrollRestoration: true,
|
||||
defaultPreload: 'intent',
|
||||
defaultPreloadStaleTime: 0
|
||||
});
|
||||
|
||||
return router;
|
||||
}
|
||||
|
||||
declare module '@tanstack/react-router' {
|
||||
interface Register {
|
||||
router: ReturnType<typeof getRouter>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user