MCPcopy Create free account
hub / github.com/TanStack/router / PostRouteComponent

Function PostRouteComponent

examples/solid/basic-solid-query/src/main.tsx:152–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150}
151
152function PostRouteComponent() {
153 const params = postRoute.useParams()
154 const postQuery = useQuery(() => postQueryOptions(params().postId))
155 const post = createMemo(() => postQuery.data)
156
157 return (
158 <div class="space-y-2">
159 <h4 class="text-xl font-bold underline">{post()?.title}</h4>
160 <div class="text-sm">{post()?.body}</div>
161 </div>
162 )
163}
164
165const pathlessLayoutRoute = createRoute({
166 getParentRoute: () => rootRoute,

Callers

nothing calls this directly

Calls 1

postQueryOptionsFunction · 0.90

Tested by

no test coverage detected