Skip to content

[Bug] Returning transitionTo in a async beforeModel hook prevents the app from booting. #19573

@knownasilya

Description

@knownasilya

🐞 Describe the Bug

Returning transitionTo or router.transitionTo in a async beforeModel hook prevents the app from booting.

🔬 Minimal Reproduction

https://github.com/knownasilya/ember-async-before-model-repro

Also happens with model, and afterModel. Works fine with redirect.

🌍 Environment

  • Ember: - 3.26 and 3.27
  • Node.js/npm: - 12.22.1/yarn 1.22.4
  • OS: - macOS (latest)
  • Browser: - Chrome (latest)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions