frintjs/frint

Proposal: App registration upon availability of other Apps

Open

#432 opened on 2018年7月12日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)JavaScript (37 forks)batch import
help wantedproposal

Repository metrics

Stars
 (746 stars)
PR merge metrics
 (30d に merged 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

コントリビューターガイド