()
| 143 | }) |
| 144 | |
| 145 | function PostComponent() { |
| 146 | const post = postRoute.useLoaderData() |
| 147 | |
| 148 | return ( |
| 149 | <div class="space-y-2"> |
| 150 | <h4 class="text-xl font-bold">{post().title}</h4> |
| 151 | <hr class="opacity-20" /> |
| 152 | <div class="text-sm">{post().body}</div> |
| 153 | </div> |
| 154 | ) |
| 155 | } |
| 156 | |
| 157 | const layoutRoute = createRoute({ |
| 158 | getParentRoute: () => rootRoute, |
nothing calls this directly
no outgoing calls
no test coverage detected