[Feature?]: Add ability to add/modify head classes, lang and lang dir
Duplicates
- [X] I have searched the existing issues
Latest version
- [X] I have tested the 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.
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.