Skip to content

Use native Head from nextjs#22

Merged
LTe merged 3 commits intomainfrom
use-native-head-from-nextjs
Dec 11, 2021
Merged

Use native Head from nextjs#22
LTe merged 3 commits intomainfrom
use-native-head-from-nextjs

Conversation

@LTe
Copy link
Copy Markdown
Collaborator

@LTe LTe commented Dec 10, 2021

There is a problem with <head> that in nextjs, because content for
this tag is collected within all components and after that it is
rendered inside <head>. We need wrap component in HeadManagerContext
and wait for nextjs to execute. That is why we need to use waitFor for
this test.

There is a problem with `<head>` that in nextjs, because content for
this tag is collected within all components and after that it is
rendered inside `<head>`. We need wrap component in `HeadManagerContext`
and wait for nextjs to execute. That is why we need to use `waitFor` for
this test.
@LTe LTe requested a review from ButterflyBug December 10, 2021 13:44
LTe added 2 commits December 10, 2021 14:55
NextJS will expect `meta` element with `next-head-count` name. Otherwise
it will skip head generation.
@LTe LTe merged commit 5fe3449 into main Dec 11, 2021
@LTe LTe deleted the use-native-head-from-nextjs branch December 11, 2021 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants