Open History to see the last commit
1import { lazy } from '@tanstack/react-router';
2import { routeConfig as parentRouteConfig } from "../posts.client";
3import { useMatch } from '@tanstack/react-router';
4export type PostType = {
5 id: string;
6 title: string;
7 body: string;
8};
9const routeConfig = parentRouteConfig.createRoute({
10 path: "$postId",
11 component: lazy(() => import('./$postId-component').then(d => ({
12 default: d.component
13 }))),
14 loader: (true as any)
15});
16export { routeConfig, routeConfig as postspostIdRoute };