As mentioned in another post, you can mark the class with @observable .
Currently, you fall between the observed and the observers. Observers (and dispatch) are old ways that will soon be discontinued. Observatories are a new way. In order not to break old customers, we watched them. If you used at least one @observable , then the observer system is disabled.
A new implementation of MDV v2 is being prepared. I suggest you use @observable for everything you want to watch. Stop using dispatch() everywhere. Also, stop using top-level observable fields because they will not bind to node.
Apologies, things are really in a state of change. I suspect that everything will be settled soon.
I suggest reading more about MDV v2 here: https://github.com/toolkitchen/mdv/blob/stable/README.md to prepare for the changes.
I suspect that @observable will remain an option, so now continue to use this.
source share