()
| 149 | } |
| 150 | |
| 151 | function PostRouteComponent() { |
| 152 | const { postId } = postRoute.useParams() |
| 153 | const postQuery = useSuspenseQuery(postQueryOptions(postId)) |
| 154 | const post = postQuery.data |
| 155 | |
| 156 | return ( |
| 157 | <div className="space-y-2"> |
| 158 | <h4 className="text-xl font-bold underline">{post.title}</h4> |
| 159 | <div className="text-sm">{post.body}</div> |
| 160 | </div> |
| 161 | ) |
| 162 | } |
| 163 | |
| 164 | const pathlessLayoutRoute = createRoute({ |
| 165 | getParentRoute: () => rootRoute, |
nothing calls this directly
no test coverage detected