Hey there! Trying to make use of the Page Metadata Override component for dynamically generated routes, but it doesn’t appear to be working. I have props filled out with mock data, just returns empty.
Hey James! Can you share your project id?
Sure! DMing you
did you fix this?
i have similar issue, it’s not really working
Mine isn’t working either (with or without Head)
<PlasmicRootProvider
loader={PLASMIC}
prefetchedData={pageProps.plasmicData}
prefetchedQueryData={pageProps.queryCache}
pageParams={pageProps.pageMeta?.params}
variation={pageProps.variation}
pageQuery={router.query}
// @ts-ignore
Head={Head}
skipFonts
>
<main className={className}>
<Component {...pageProps} />
</main>
</PlasmicRootProvider>
Hi, please provide a link to your project.
I have an example here using it:
Some things that you need to pay attention to:
- If you are using dynamic data, you need to be sure that your application is appropriately calling
extractPlasmicQueryData
as demonstrated in: Querying data with code components | Learn Plasmic - Check your applications logs, if you find something like
PLASMIC: Encountered error when pre-rendering
, this may be the reason and it needs a case by case analysis. It can be that you are accessing something only available in the client (window, for example)