emberjs / emberjs/ember.js

[Bug] TransitionAborted with queryParams refreshModel

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

Description

### 🐞 Describe the Bug
When creating a transition to a route with a `queryParams` `refreshModel`,
the transition gets aborted because the query parameter changes.. (I believe)

### 🔬 Minimal Reproduction
Create a route with a `queryParams` with `refreshModel=true` set.
Transition to route and wait for the transition to complete.

https://ember-twiddle.com/d37d20a77e51786d1cd04a12dae9740e

### 😕 Actual Behavior
Original transition gets aborted, a new transition gets created (replaced ?) in the background..

### 🤔 Expected Behavior
Transition shouldn't abort ..

### 🌍 Environment

- Ember: 3.26.1 & 3.27.2
- Node.js/npm: v10.24.0
- OS: Linux
- Browser: Chrome

and whatever ember twiddle uses.. (Ember 3.18 ?)

### ➕ Additional Context
I often `await` a transition.. this behaviour is problematic for me.

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.