Use RouterService for transitionTo() fix deprecation
MODIFY
tests/dummy/app/routes/aborted-paint.js
tests/dummy/app/routes/aborted-paint.js
import Route from '@ember/routing/route';
+import { inject as service } from '@ember/service';
export default class AbortedPaintRoute extends Route {
+ @service router;
+
beforeModel(transition) {
transition.abort();
- this.transitionTo('content-paint');
+ this.router.transitionTo('content-paint');
}
}

Use RouterService for transitionTo() fix deprecation (#1165)