vuejs / core

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
https://vuejs.org/
MIT License
47.75k stars 8.35k forks source link

slot with always-true condition is not rendered on ssr #12438

Open danielroe opened 3 days ago

danielroe commented 3 days ago

Vue version

3.5.12

Link to minimal reproduction

https://stackblitz.com/edit/github-bgizhu-bvt2ew

Steps to reproduce

Refresh the page - you will see a flash as the SSR content is replaced with client-side content.

What is expected?

There should be no mismatch between server + client render.

What is actually happening?

The server is not rendering a slot even though the condition is true.

System Info

No response

Any additional comments?

No response