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

API request: the ability to retrieve the list of assets loaded/in the cache #99

Closed
pyuan opened this issue Mar 4, 2020 · 1 comment
Closed

Comments

@pyuan
Copy link

pyuan commented Mar 4, 2020

Hi, we have a use case where in order to prevent assets from being loaded too early and negatively impacting the page load time of a route, we would like to add an assert to ensure only the expected list of assets have been loaded at a particular lifecycle hook of a route. So if a new asset is added to be eagerly loaded, the assert would also need to be updated. Any thoughts? Thanks

fyi @sangm @chriskrycho

@pyuan
Copy link
Author

pyuan commented Apr 17, 2020

ah just found that this is already exposed as a test helper: https://github.com/ember-engines/ember-asset-loader/blob/master/addon-test-support/loaded-asset-state.js#L83 nevermind!

@pyuan pyuan closed this as completed Apr 17, 2020
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