Skip to content

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

@arnebit

Description

@arnebit

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions