Subscribe on changes!

The subcomponents use V-for and static useslot() Default() is different

avatar
Apr 24th 2022

Version

3.2.33

Reproduction link

sfc.vuejs.org/

Steps to reproduce

View console output

What is expected?

static console:[slot, slot]; v-for console:[slot, slot]

What is actually happening?

static console: [slot, slot]; v-for console:[{ children: [slot, slot] }]


I'm not sure if this is a bug. If it's not a bug, how should I deal with these two situations

avatar
Apr 24th 2022

v-for generates a Fragment, so yes, this is expected