-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Themes: Get rid of Helmet
#3795
Comments
We might want to turn the |
Now that there is the |
Ok, I took a look at the source code, if I understand correctly:
I propose to merge |
Sounds quite good! You're right with your diagnosis -- one note on the suggested therapy:
Not sure I'm reading you correctly here, but I wouldn't merge everything into a component. Note that You might find some more ideas floated around in issues around |
We should really get rid of Helmet, as it's more hassle than benefit.
Rationale: For most pages we want to give
title
andmeta
tags, we'll have to fetch some data from Redux (e.g. theme name for a theme sheet). From there, we have to add those data to Helmet;rewind
Helmet right afterrenderToString
to get the data back (and not forget to cache them alongwith the rendered markup!); and pass them toindex.jade
to have them rendered in their appropriate places.Or we just get them from Redux, and pass them to
index.jade
.The text was updated successfully, but these errors were encountered: