Skip to content

feat: add useMetatag hook to retrieve the metatag of the current entity

Max de Vries requested to merge feature/use-metatag-hook into master

This merge request adds a useMetatag hook to retrieve the metatag object for the current entity type.

Example usage:

const { title } = useMetatag();

...

<Page title={title?.attributes.content}>
  {...}
</Page>

Merge request reports

Loading