New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[examples/with-react-helmet] <title> should not be used in _document.js's <Head> #5668
Comments
I created a PR to fix that, you can have a look here : #5678 |
Ok, but isn't there a reason why default I don't know the intricacies of Because, even without using |
The reason for the warning is explained here : #4596
If you try to use |
Actually this is an interesting issue, since you don't want to remove |
Some off topic thoughts if anyone feels like chewing on them:
|
Definitely, adding react-helmet would increase bundle size while it's not needed because we provide next/head
In pretty much all cases you don't want to use react-helmet, it's mostly for interoperating old and new code while moving from a different app to Next.js
We could, but it doesn't make much difference until we implement streaming rendering. |
For instance, how would I add a class to With
That's the sole reason I looked upon |
What's the reason for adding classes to html/body 🤔 Because of the way css inheritance works you could add classes on pages / _app.js and it'd work in the same way. |
Maybe adding |
When working with modals, to add |
@timneutkens Right now I'm using I might just create a simple component that goes straight to the DOM via |
Solved in #7483 |
Examples bug report
Example name
with-react-helmet
Describe the bug
To Reproduce
Expected behavior
I expect that the example is set up in compliance with Next's functionality.
Screenshots
N/A
System information
N/A
Additional context
I previously didn't get the
Warning
, but I noticed this in my production app.Also, AFAIK, it's not only
<title>
related, but also<meta>
's and basically everything else that is page related rather than totally global?I cannot seem to figure out a way how to use
react-helmet
in compliance with Next, though.The text was updated successfully, but these errors were encountered: