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

Add whenReady to complement isReady by returning a Promise #28

Open
ElliotNB opened this issue Jun 25, 2019 · 0 comments
Open

Add whenReady to complement isReady by returning a Promise #28

ElliotNB opened this issue Jun 25, 2019 · 0 comments

Comments

@ElliotNB
Copy link
Owner

Today, we have the isReady method, which returns true when the component (and all child components) are no longer processing any UI updates, data requests, etc. We should add the method whenReady which returns a Promise that resolves whenever the component becomes ready. If the component is already ready at the time whenReady is invoked, then the Promise should immediately resolve.

We've encountered a few different scenarios where it's beneficial to have a listener for a component is completely finished loading, rendering, etc.

@atorres-t4m might be interested in tackling this one.

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

No branches or pull requests

1 participant