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

loading templates are ignored when a route is entered via its alias #25

Open
arnebit opened this issue May 8, 2018 · 0 comments
Open

Comments

@arnebit
Copy link

arnebit commented May 8, 2018

When a route's model takes some time to load and there is a ...-loading.hbs for the route, it is not shown when entering the aliased route - the previous page just stays there until loading is completed and the actual route template is rendered.

If this is intentional or unavoidable, it would be helpful to learn that directly from the documentation.

Example:

// tests/dummy/app/routes/one.js
import Route from '@ember/routing/route';

export default Route.extend({
  model() { return new Promise(resolve => setTimeout(resolve, 3000)) }
})
{{!-- tests/dummy/app/templates/one-loading.hbs --}}
<em> loading one! </em>

Then visit /one, visit /two (or any other route), then visit /alias-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