Skip to content

Fix _value updated during load in ObservableData #266

Description

@christensson

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions