Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Improve didTransition in routing #20333

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

olenderhub
Copy link
Contributor

Issue:

  1. This part of code: this.controller.get('errors.base').clear(); breaks https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/no-controller-access-in-routes.md rule.
  2. Using didTransition this way is deprecated in favor of https://deprecations.emberjs.com/v3.x/#toc_deprecate-router-events

Copy link
Contributor

@chriskrycho chriskrycho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, and good fix overall! I have one correctly we need to make, but I'll happily land the other!

packages/@ember/routing/route.ts Outdated Show resolved Hide resolved
@olenderhub
Copy link
Contributor Author

@chriskrycho thank you for the clarification. I misunderstood this. I removed what you mentioned in the comment and pushed by force code related to removing the old approach.

Copy link
Contributor

@chriskrycho chriskrycho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem! Like I said, I had to go back and check it myself, so I sympathize. 😂

@chriskrycho chriskrycho merged commit 15a87bd into emberjs:master Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants