()
| 116 | } |
| 117 | |
| 118 | function PostComponent() { |
| 119 | const post = postRoute.useLoaderData() |
| 120 | |
| 121 | return ( |
| 122 | <div class="space-y-2"> |
| 123 | <h4 class="text-xl font-bold">{post().title}</h4> |
| 124 | <hr class="opacity-20" /> |
| 125 | <div class="text-sm">{post().body}</div> |
| 126 | </div> |
| 127 | ) |
| 128 | } |
| 129 | |
| 130 | const pathlessLayoutRoute = createRoute({ |
| 131 | getParentRoute: () => rootRoute, |
nothing calls this directly
no outgoing calls
no test coverage detected