Skip to content

Ensure controller is not destroyed before setting contextRoute#16

Open
cyk wants to merge 1 commit into
nathanhammond:masterfrom
cyk:destroyed-controller-guard
Open

Ensure controller is not destroyed before setting contextRoute#16
cyk wants to merge 1 commit into
nathanhammond:masterfrom
cyk:destroyed-controller-guard

Conversation

@cyk

@cyk cyk commented May 21, 2017

Copy link
Copy Markdown

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