Given a typical Vue component with slot usage:
<template>
<div>
<slot></slot>
</div>
</template>
<script>
export default {
name: "VueComponent"
}
</script>
Is there any possible way to implement an observer/watcher that keeps track of number of DOM children inside slot? I need to know whenever a child is added/removed inside the component.