MCPcopy
hub / github.com/TanStack/router / DetailsComponent

Function DetailsComponent

packages/react-router/tests/useNavigate.test.tsx:386–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

useNavigateFunction · 0.90
navigateFunction · 0.50

Tested by

no test coverage detected