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

Function PostsIndexComponent

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

Source from the content-addressed store, hash-verified

128 })
129
130 const PostsIndexComponent = () => {
131 const navigate = useNavigate()
132 return (
133 <>
134 <h1>Posts Index</h1>
135 <button
136 onClick={() =>
137 navigate({
138 from: '/posts/',
139 to: './$postId',
140 params: { postId: 'id1' },
141 })
142 }
143 >
144 To the first post
145 </button>
146 </>
147 )
148 }
149
150 const postsIndexRoute = createRoute({
151 getParentRoute: () => postsRoute,

Callers

nothing calls this directly

Calls 2

useNavigateFunction · 0.90
navigateFunction · 0.50

Tested by

no test coverage detected