Watch for changes being made to the DOM tree.
<script setup>
import { ref } from 'vue'
import { useMutationObserver } from 'vue-observer-hooks'
const el = ref(null)
useMutationObserver(el, (mutation) => {
// todo...
}, { attributes: true })
</script>
<template>
<div ref="el" />
</template>