Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: App registration upon availability of other Apps #432

Open
fahad19 opened this issue Jul 12, 2018 · 0 comments
Open

Proposal: App registration upon availability of other Apps #432

fahad19 opened this issue Jul 12, 2018 · 0 comments

Comments

@fahad19
Copy link
Member

fahad19 commented Jul 12, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant