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