{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/12732","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/12732/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/12732/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/12732/events","html_url":"https://github.com/emberjs/ember.js/issues/12732","id":123093508,"number":12732,"title":"Possible regression in 1.13.x handing a promise to a component via a template","user":{"login":"kellyselden","id":602423,"avatar_url":"https://avatars.githubusercontent.com/u/602423?v=3","gravatar_id":"","url":"https://api.github.com/users/kellyselden","html_url":"https://github.com/kellyselden","followers_url":"https://api.github.com/users/kellyselden/followers","following_url":"https://api.github.com/users/kellyselden/following{/other_user}","gists_url":"https://api.github.com/users/kellyselden/gists{/gist_id}","starred_url":"https://api.github.com/users/kellyselden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kellyselden/subscriptions","organizations_url":"https://api.github.com/users/kellyselden/orgs","repos_url":"https://api.github.com/users/kellyselden/repos","events_url":"https://api.github.com/users/kellyselden/events{/privacy}","received_events_url":"https://api.github.com/users/kellyselden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-19T15:48:47Z","updated_at":"2015-12-21T17:35:13Z","closed_at":null,"body":"For reference: http://stackoverflow.com/questions/34338167/ember-update-causes-promises-in-templates-to-not-wait-to-resolve\r\n\r\nThis may be a non-issue/known issue of undefined behavior becoming fixed. I am just confused and want to understand more what happened.\r\n\r\nI updated an app from 1.12 to 1.13, and it involved adding extra promise handling in the component.\r\n```hbs\r\n    {{a-component parent=model.parent}}\r\n```\r\nold\r\n```js\r\n    parentChanged: on('init', observer('parent', function() {\r\n      var parent = this.get('parent');\r\n      if (parent) {\r\n        parent.get('child').then(child => {\r\n          this.set('child', child);\r\n        });\r\n      }\r\n    }))\r\n```\r\nThe above worked previously, but after the update, `child` is undefined after the `then` call. I had to change it to\r\n```js\r\n    parentChanged: on('init', observer('parent', function() {\r\n      var parent = this.get('parent');\r\n      if (parent) {\r\n        parent.then(parent => {\r\n          parent.get('child').then(child => {\r\n            this.set('child', child);\r\n          });\r\n        });\r\n      }\r\n    }))\r\n```\r\nI was able to work around it, but I'm really interested in what it was doing before."},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/166368648","html_url":"https://github.com/emberjs/ember.js/issues/12732#issuecomment-166368648","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/12732","id":166368648,"user":{"login":"pixelhandler","id":17178,"avatar_url":"https://avatars.githubusercontent.com/u/17178?v=3","gravatar_id":"","url":"https://api.github.com/users/pixelhandler","html_url":"https://github.com/pixelhandler","followers_url":"https://api.github.com/users/pixelhandler/followers","following_url":"https://api.github.com/users/pixelhandler/following{/other_user}","gists_url":"https://api.github.com/users/pixelhandler/gists{/gist_id}","starred_url":"https://api.github.com/users/pixelhandler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixelhandler/subscriptions","organizations_url":"https://api.github.com/users/pixelhandler/orgs","repos_url":"https://api.github.com/users/pixelhandler/repos","events_url":"https://api.github.com/users/pixelhandler/events{/privacy}","received_events_url":"https://api.github.com/users/pixelhandler/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T17:35:13Z","updated_at":"2015-12-21T17:35:13Z","body":"@kellyselden can you put together a js-bin or ember-twiddle example that reproduces the issue? If this is more of a question perhaps having a demoable example will help as well."}}