[✨] Modify head at runtime with useDocumentHead #142
GrandSchtroumpf
started this conversation in
Proposals For Qwik
Replies: 2 comments
-
|
I have another alternative is, you can create a global context and update context in component. In |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
We moved this issue to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem?
I want to update the head content dynamically from a hook. I've got a theme picker and want to update the theme-color meta tag.
From what I understand this is currently impossible to update head properties at runtime.
Describe the solution you'd like
Two options :
useDocumentHead().metacan be aSignal.useDocumentHead()could provide anupdatemethod.I would rather use option 1.
Describe alternatives you've considered
Use the DOM api, but then it wouldn't work on the server.
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions