You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library is great for wrapping my app dir components in withParamValidation – but there's no similar higher order function for getting type safety in Next's generateMetadata exports which can rely on route params.
Hi there,
This library is great for wrapping my app dir components in
withParamValidation
– but there's no similar higher order function for getting type safety in Next'sgenerateMetadata
exports which can rely on route params.https://nextjs.org/docs/app/api-reference/functions/generate-metadata
This seems relatively straightforward to implement by abstracting out some of the logic in
withParamValidation
to a common function.Is this something that's been considered, and if it's a decent idea would you be open to implementing it or accepting a PR? Thanks!
The text was updated successfully, but these errors were encountered: