()
| 154 | }) |
| 155 | |
| 156 | const PostComponent = () => { |
| 157 | const params = useParams({ strict: false }) |
| 158 | const navigate = useNavigate() |
| 159 | return ( |
| 160 | <> |
| 161 | <span>Params: {params().postId}</span> |
| 162 | <button onClick={() => navigate({ to: '/' })}>Index</button> |
| 163 | </> |
| 164 | ) |
| 165 | } |
| 166 | |
| 167 | const postRoute = createRoute({ |
| 168 | getParentRoute: () => postsRoute, |
nothing calls this directly
no test coverage detected