frintjs/frint

Proposal: App registration upon availability of other Apps

開放

#432 建立於 2018年7月12日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (37 個分叉)batch import
help wantedproposal

倉庫指標

星標
 (746 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南