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

Ensure prefetch hook will be called on routes within a lazy engine #159

Merged
merged 3 commits into from
Nov 18, 2019

Conversation

xg-wang
Copy link
Contributor

@xg-wang xg-wang commented Nov 15, 2019

When loading a lazy engine ember-prefetch needs to wait engine routes instantiation. This PR takes a different approach than #150 by waiting any route first.
The lazy engine emulation is taken from https://github.com/emberjs/ember.js/blob/fb91c8a96f5f0f496eeadb167dc4676fe49dcf8c/packages/%40ember/-internals/glimmer/tests/integration/application/engine-test.js

@rwjblue rwjblue merged commit 58987a8 into nickiaconis:master Nov 18, 2019
@rwjblue rwjblue changed the title fix: prefetch hook on Lazy engine routes Ensure prefetch hook will be called on routes within a lazy engine Nov 18, 2019
@rwjblue rwjblue added the bug label Nov 18, 2019
@xg-wang xg-wang deleted the lazy-engine branch November 18, 2019 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants