MCPcopy Index your code
hub / github.com/TanStack/router / PostComponent

Function PostComponent

packages/solid-router/tests/useNavigate.test.tsx:156–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 3

useParamsFunction · 0.90
useNavigateFunction · 0.90
navigateFunction · 0.50

Tested by

no test coverage detected