We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1f7fda commit cf2b92aCopy full SHA for cf2b92a
playground/rsc-vite-framework/app/routes/mdx-glob.$post/route.tsx
@@ -8,7 +8,11 @@ export async function loader({ params }: Route.LoaderArgs) {
8
throw new Response("Not Found", { status: 404, statusText: "Not Found" });
9
}
10
11
- return { postElement: <post.Component /> };
+ return { title: post.title, postElement: <post.Component /> };
12
+}
13
+
14
+export function meta({ loaderData }: Route.ComponentProps) {
15
+ return [{ title: loaderData.title }];
16
17
18
export function ServerComponent({ loaderData }: Route.ComponentProps) {
0 commit comments