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

Return promise from m.mount and m.route #1868

Open
spacejack opened this issue Jun 10, 2017 · 2 comments
Open

Return promise from m.mount and m.route #1868

spacejack opened this issue Jun 10, 2017 · 2 comments
Labels
Type: Enhancement For any feature request or suggestion that isn't a bug fix

Comments

@spacejack
Copy link
Contributor

It would be useful to know when mounting & routing are complete in cases where your app needs to access the DOM (when not in a component lifecycle hook.) I've found with mount you need to wait 1 frame, with route you might need to wait 2 frames (including the redirect from / to /#! for example.)

Hopefully this will be easy when redraws are made async.

@dead-claudia dead-claudia added the Type: Enhancement For any feature request or suggestion that isn't a bug fix label Jun 12, 2017
@tivac
Copy link
Contributor

tivac commented Jul 17, 2017

#1592 landed, so this may be worth investigating again.

@oliverhunt
Copy link

This would be a worthwhile feature for me

This was referenced Jul 19, 2017
@dead-claudia dead-claudia added this to Under consideration in Feature requests/Suggestions Oct 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement For any feature request or suggestion that isn't a bug fix
Projects
Feature requests/Suggestions
Under consideration
Development

No branches or pull requests

4 participants