SSR Hydration errors stemming from v-bind in CSS coupled with child component style bindings #11735
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
scope: sfc-style-vars
Vue version
3.4.38
Link to minimal reproduction
Vue SFC Playground Reproduction
Steps to reproduce
Load the playground reproduction, and ensure SSR is enabled. You'll see the Hydration Error warning in the console.
Code Example
Note
This is the same code submitted in the reproduction
Click to view the code from the reproduction
What is expected?
The inline style bindings in the child component would be resolved properly during SSR to prevent hydration errors.
What is actually happening?
The style bindings are not being properly merged, triggering a hydration error in SSR
System Info
No response
Any additional comments?
Essentially, the problem occurs when you use
v-bind
in a parent component (which under the hood inlines CSS custom properties on the root of the child component) and then you ALSO have bound dynamic styles to the root element internally.The text was updated successfully, but these errors were encountered: