Subscribe on changes!

[bug]slot props(ref object) not expanded

avatar
Mar 2nd 2021

Version

3.0.7

Reproduction link

https://codesandbox.io/s/youthful-pond-0wsgb?fontsize=14&hidenavigation=1&theme=dark

Steps to reproduce

https://codesandbox.io/s/youthful-pond-0wsgb?fontsize=14&hidenavigation=1&theme=dark

What is expected?

Slot props which are ref objects should be expanded.

What is actually happening?

The ref object itself got rendered.

avatar
Mar 2nd 2021

This is expected and convenient. Wrap the object withreactive to unwrap: return slots.default(reactive({ count })