()
| 384 | }) |
| 385 | |
| 386 | const DetailsComponent = () => { |
| 387 | const navigate = useNavigate() |
| 388 | return ( |
| 389 | <> |
| 390 | <h1>Details!</h1> |
| 391 | <button |
| 392 | onClick={() => |
| 393 | navigate({ from: '/posts/$postId', to: '/posts/$postId/info' }) |
| 394 | } |
| 395 | > |
| 396 | To Information |
| 397 | </button> |
| 398 | </> |
| 399 | ) |
| 400 | } |
| 401 | |
| 402 | const detailsRoute = createRoute({ |
| 403 | getParentRoute: () => postRoute, |
nothing calls this directly
no test coverage detected