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.
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.