Next.js Discord

Discord Forum

Generating dynamic metadata in a client component

Unanswered
Spectacled bear posted this in #help-forum
Open in Discord
Spectacled bearOP
Hey there,

I'm trying to generate metadata for a dynamic page. It's a client component that uses useState and useEffect.

generateMetadata() and generateStaticParams() only work on server components.

Is there any way to generate metadata for these pages, considering they're client components?

Thanks

1 Reply

American Crow