Closed
Description
Vue version
3.5.12
Link to minimal reproduction
Steps to reproduce
const container = defineComponent({
setup(_, { slots }) {
/* Slot "default" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead. */
return () => slots.default && slots.default();
},
});
What is expected?
消除上面的警告
What is actually happening?
v < 3.3.4 符合预期
v3.5.12 不符合预期,会有上面的警告
System Info
No response
Any additional comments?
No response
在setup里,直接render会出现此警告,把mount()改为nextTick(mount)可以消除警告。直接再main.js里调用是不会的。
但是:上面的情况在更早的(比如:3.3.4)版本里是没有这种情况的