An observer manages a callback function
You can call create the class via the monster namespace new Monster.Types.ProxyObserver()
.
<script type="module">
import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
new Monster.Types.ProxyObserver()
</script>
Alternatively, you can also integrate this class individually.
<script type="module">
import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/proxyobserver.js';
new ProxyObserver()
</script>
with the ProxyObserver you can attach observer for observation. with each change at the object to be observed an update takes place.
this also applies to nested objects.