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

Ensure controller is not destroyed before setting contextRoute #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cyk
Copy link

@cyk cyk commented May 21, 2017

After upgrading to Ember.js 2.13x, I'm getting "calling set on destroyed object" errors when running my acceptance tests. It's not always the same test and is thrown when route-alias initializer reopens and sets routeContext on the controller.

Unfortunately, I have not yet been able to write an isolated test case to reproduce, and the code base manifesting is private. What I do know is that adding a simple check, seems to resolve this particular issue. This PR introduces that check.

Other notes that may be helpful:

  • There are multiple acceptance tests with transitions triggered by link-to where the target route is an alias for a dynamic route
  • This manifest after upgrading from Ember.js v2.12.2 → v2.13.2, Ember-CLI v2.12.3 → v2.13.2
  • I've been unable to reproduce using an upgraded 2.13.x branch of ember-route-alias and acceptance tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant