MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / meta

Function meta

app/routes/j/$id.tsx:160–176  ·  view source on GitHub ↗
({
  data,
}: {
  data: LoaderData | undefined;
})

Source from the content-addressed store, hash-verified

158};
159
160export const meta: MetaFunction = ({
161 data,
162}: {
163 data: LoaderData | undefined;
164}) => {
165 let title = "JSON Hero";
166
167 if (data?.doc?.title) {
168 title += ` - ${data.doc.title}`;
169 }
170
171 return {
172 title,
173 "og:title": title,
174 robots: "noindex,nofollow",
175 };
176};
177
178export default function JsonDocumentRoute() {
179 const loaderData = useLoaderData<LoaderData>();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected