question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enter loading substate while waiting for lazy engine to download.

See original GitHub issue

Given

Router.map(function() {
  this.mount('my-engine');
});

and app/templates/my-engine-loading.hbs, the loading substate only enters after the engine has downloaded. Is it possible to enter the loading substate before the engine starts downloading?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tigressbaileycommented, Jun 12, 2018

@trentmwillis Same here. The loading template shows up until the JavaScript file and CSS file are downloaded.

0reactions
siva-sundarcommented, Jun 12, 2017

May be we can have an intermediate transition by triggering _scheduleLoadingEvent here. But _scheduleLoadingEvent requires a routeHandler which will not be available until the engine resources are loaded. Thoughts?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ember-guides/loading-and-error-substates.md at master
This has implications on error handling, i.e. when a transition into another route fails, a lazy transition will (by default) just remain on...
Read more >
Ember.js Loading substate templates | by Quang Nguyen
To keep your user waiting, you would want to create a loading substate by creating a loading.hbs or application-loading.hbs inside the templates folder...
Read more >
Loading Resources at Runtime - Unity - Manual
To put anything into a Resource Folder, you simply create a new folder inside the Project View, and name the folder “Resources”. You...
Read more >
Routing: Loading / Error Substates - Ember.js - GitHub Pages
baz completes, the loading substate will be exited, its template torn down, foo.bar.baz will be entered, and its templates rendered. Eager vs. Lazy...
Read more >
Top 18 Most Common AngularJS Developer Mistakes - Toptal
Single page apps demand the front-end developers to become better software engineers. CSS and HTML are not the biggest concern anymore, in fact,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found