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
Currently, the server component contains the basic outline of a page including the head element. This as far as I have seen, makes it impossible to change the classes, lang and lang dir reactively. I think this should be provided as pseudo component, though I don't know, if solid-meta would be better for this feature. But open for other ideas.
Examples 🌈
Not needed.
Motivation 🔦
I wanted to build a website with multilang support as well as the ability to have dark and light mode. My current solution is to add some static scripts to the head section of the server component and calling a function provided there.
The text was updated successfully, but these errors were encountered:
I do think something like Solid Meta would be better.. or something in Solid itself. Right now as you said you have to write it into the document and then create an effect that writes to it after the fact in the client to do updates. It would be nice to streamline this.
Duplicates
Latest version
Summary 💡
Currently, the server component contains the basic outline of a page including the head element. This as far as I have seen, makes it impossible to change the classes, lang and lang dir reactively. I think this should be provided as pseudo component, though I don't know, if solid-meta would be better for this feature. But open for other ideas.
Examples 🌈
Not needed.
Motivation 🔦
I wanted to build a website with multilang support as well as the ability to have dark and light mode. My current solution is to add some static scripts to the head section of the server component and calling a function provided there.
The text was updated successfully, but these errors were encountered: