ObservableData in UI has some attributes containing RxJS Observables
- _value stores value
- _opts stores options
ObservableData subscribes to updates of _opts. When updated, async method _load is called returning new value which triggers an update of _value.
Since _load is async, _value might be updated from elsewhere during the execution of _load.
One example is the Type subscriptions in TypeItem and TypeList where the api.io API type might receive updated events which triggers an update of _value.
In TypeItem if type is updated during _load a solution where the "loaded" value's and the "updated" value's timestamp can be compared in order to find which data to set _value to.
ObservableData in UI has some attributes containing RxJS Observables
ObservableData subscribes to updates of _opts. When updated, async method _load is called returning new value which triggers an update of _value.
Since _load is async, _value might be updated from elsewhere during the execution of _load.
One example is the Type subscriptions in TypeItem and TypeList where the api.io API type might receive updated events which triggers an update of _value.
In TypeItem if type is updated during _load a solution where the "loaded" value's and the "updated" value's timestamp can be compared in order to find which data to set _value to.