frintjs/frint

Proposal: App registration upon availability of other Apps

Open

#432 创建于 2018年7月12日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (746 star) (37 fork)batch import
help wantedproposal

描述

Currently

If we want to wait for certain Apps to be available first, before registering a new App, we do it like this:

window.app.getAppOnceAvailable$('FooApp').subscribe(
  fooApp => window.app.registerApp(BazApp)
);

Proposal

We can make things a bit more easier:

window.app.registerAppOnceAvailable(['FooApp', 'BarApp'], BazApp);

(not convinced with the method name registerOnceAvailable yet)

Relates to #425

贡献者指南