this.loadIndicator(true);
// change the current model...
await this.updateModel();
this.loadIndicator(false);
In general, whenever an action is dispatched, I get a promise that is resolved when the effect is visible (i.e. the command has been executed and the viewer has updated the DOM).
While working on https://github.com/TypeFox/npm-dependency-graph I realized that we need a better way to interact with a LocalModelSource. With this change I can write code like
In general, whenever an action is dispatched, I get a promise that is resolved when the effect is visible (i.e. the command has been executed and the viewer has updated the DOM).