odoo / owl

OWL: A web framework for structured, dynamic and maintainable applications
https://odoo.github.io/owl/
Other
1.14k stars 344 forks source link

Give some way to access the lifecycle of elements defined in slots #1512

Open sdegueldre opened 1 year ago

sdegueldre commented 1 year ago

Currently, if you want to have a mount/unmount side effect for an element defined in a slot, you are out of luck: the lifecycle is controlled by the slot-caller and unless they expose an API for it, you cannot react to the mount/unmount of an element in a slot defined by a component inside that component. Probably solved by proper callback refs.