emberjs / emberjs/ember.js

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

Open
#19,573 2 comments 0 reactions 0 assignees View on GitHub
bug Has Reproduction Routing
Dominant language
TypeScript
Stars
22.6k
Forks
4.2k
Avg merge
3d 12h
Merged PRs (30d)
15

Description

### 🐞 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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.