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