{"action":"created","issue":{"url":"https://api.github.com/repos/studiointeract/tracker-component/issues/5","repository_url":"https://api.github.com/repos/studiointeract/tracker-component","labels_url":"https://api.github.com/repos/studiointeract/tracker-component/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/studiointeract/tracker-component/issues/5/comments","events_url":"https://api.github.com/repos/studiointeract/tracker-component/issues/5/events","html_url":"https://github.com/studiointeract/tracker-component/issues/5","id":144582895,"number":5,"title":"Test for nested components","user":{"login":"serkandurusoy","id":4649948,"avatar_url":"https://avatars.githubusercontent.com/u/4649948?v=3","gravatar_id":"","url":"https://api.github.com/users/serkandurusoy","html_url":"https://github.com/serkandurusoy","followers_url":"https://api.github.com/users/serkandurusoy/followers","following_url":"https://api.github.com/users/serkandurusoy/following{/other_user}","gists_url":"https://api.github.com/users/serkandurusoy/gists{/gist_id}","starred_url":"https://api.github.com/users/serkandurusoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serkandurusoy/subscriptions","organizations_url":"https://api.github.com/users/serkandurusoy/orgs","repos_url":"https://api.github.com/users/serkandurusoy/repos","events_url":"https://api.github.com/users/serkandurusoy/events{/privacy}","received_events_url":"https://api.github.com/users/serkandurusoy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-30T13:07:35Z","updated_at":"2016-03-31T11:32:23Z","closed_at":"2016-03-30T14:36:04Z","body":"According to the comments from ultimatejs:traker-react, `componentWillUnmount()` is only run within the topmost component and any inner components that o clean ups using it will be left stale.\r\n\r\nTo avoid that, tracker-react uses low level prototype methods, but official react recommendation is extending React.Component with your own component where you have a call to [super.componentWilUnmount()](https://github.com/facebook/react/issues/6162)\r\n\r\nThis gets me thinking, although I have not yet tried it, how does tracker-component behave when there are nested Tracker.Component's?\r\n\r\nLets say we have a Post component which fetches a post from a posts collection and within that we make a call (within a comments.map((id)=><Comment id=id/>)) to a comment component which itself subscribes and fetches a comment from a comments collection.\r\n\r\nIn such a case, does it behave well, do all cleanups get fired?"},"comment":{"url":"https://api.github.com/repos/studiointeract/tracker-component/issues/comments/203888599","html_url":"https://github.com/studiointeract/tracker-component/issues/5#issuecomment-203888599","issue_url":"https://api.github.com/repos/studiointeract/tracker-component/issues/5","id":203888599,"user":{"login":"serkandurusoy","id":4649948,"avatar_url":"https://avatars.githubusercontent.com/u/4649948?v=3","gravatar_id":"","url":"https://api.github.com/users/serkandurusoy","html_url":"https://github.com/serkandurusoy","followers_url":"https://api.github.com/users/serkandurusoy/followers","following_url":"https://api.github.com/users/serkandurusoy/following{/other_user}","gists_url":"https://api.github.com/users/serkandurusoy/gists{/gist_id}","starred_url":"https://api.github.com/users/serkandurusoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serkandurusoy/subscriptions","organizations_url":"https://api.github.com/users/serkandurusoy/orgs","repos_url":"https://api.github.com/users/serkandurusoy/repos","events_url":"https://api.github.com/users/serkandurusoy/events{/privacy}","received_events_url":"https://api.github.com/users/serkandurusoy/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T11:32:23Z","updated_at":"2016-03-31T11:32:23Z","body":"Well, hopefully I will have a fairly large test case in a few weeks becasue I'm kicking off this largish line of business app and I'm meaning to use this for my data integration. So you'll definitely be getting lots of input from me :) "}}