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