-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Closed as not planned
Labels
has workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problemscope: ssr
Description
Vue version
3.4.5
Link to minimal reproduction
https://stackblitz.com/edit/vue-issues-10026
Steps to reproduce
- Use
getSSRProps - Check the 2nd argument (
vNode) - See it always it empty
What is expected?
vNode should be available so you can update or change class values via SSR directives. Right now, you can provide a "default value" when rendering on the server but have no information which values the vnode would have, only the binding which might not be enough.
One use case would be altering classes based on dedupe-logic (e.g. merging tailwind classes).
What is actually happening?
vNode is always null
System Info
No response
Any additional comments?
A workaround would be using component + slots, but that seems tedious if used for a huge amount of elements.
Metadata
Metadata
Assignees
Labels
has workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problemscope: ssr