How to inject data like classes on/before ssr on document root or body #73
-
To inject something on the head there's emitToDocumentHead hook but I need to inject classname to body or document on ssr. Is there any method to do so? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You can use the |
Beta Was this translation helpful? Give feedback.
-
Oh, sorry, I got it all wrong! I think you may make it work but it's probably invalid HTML. You're right, there isn't a way yet. It will work with either an HTML shell customization hook or with the |
Beta Was this translation helpful? Give feedback.
Oh, sorry, I got it all wrong! I think you may make it work but it's probably invalid HTML.
You're right, there isn't a way yet.
It will work with either an HTML shell customization hook or with the
Head
component (and returninghead
fromprerender
) but it's not implemented yet.