Skip to content

Commit

Permalink
New subapp-web function: isLoaded
Browse files Browse the repository at this point in the history
  • Loading branch information
christianlent committed Jan 28, 2020
1 parent 15b94ce commit 5ff5005
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/subapp-web/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ export function waitForSubApp(name) {
});
}

export function isLoaded(name) {
return Boolean(xarc.getSubApp(name));
}

export function dynamicLoadSubApp({ name, id, timeout = 15000, onLoad, onError, fallback }) {
// TODO: timeout and callback
const lname = name.toLowerCase();
Expand Down

0 comments on commit 5ff5005

Please sign in to comment.