{"action":"created","issue":{"url":"https://api.github.com/repos/misterfresh/react-easy-transition/issues/7","repository_url":"https://api.github.com/repos/misterfresh/react-easy-transition","labels_url":"https://api.github.com/repos/misterfresh/react-easy-transition/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/misterfresh/react-easy-transition/issues/7/comments","events_url":"https://api.github.com/repos/misterfresh/react-easy-transition/issues/7/events","html_url":"https://github.com/misterfresh/react-easy-transition/issues/7","id":161979619,"number":7,"title":"Uncaught TypeError: Cannot read property 'componentDidLeave' of undefined","user":{"login":"aikssen","id":1864698,"avatar_url":"https://avatars.githubusercontent.com/u/1864698?v=3","gravatar_id":"","url":"https://api.github.com/users/aikssen","html_url":"https://github.com/aikssen","followers_url":"https://api.github.com/users/aikssen/followers","following_url":"https://api.github.com/users/aikssen/following{/other_user}","gists_url":"https://api.github.com/users/aikssen/gists{/gist_id}","starred_url":"https://api.github.com/users/aikssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aikssen/subscriptions","organizations_url":"https://api.github.com/users/aikssen/orgs","repos_url":"https://api.github.com/users/aikssen/repos","events_url":"https://api.github.com/users/aikssen/events{/privacy}","received_events_url":"https://api.github.com/users/aikssen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-23T17:34:51Z","updated_at":"2016-06-24T02:06:09Z","closed_at":null,"body":"I found this problem when I tried to use EasyTransition with a custom Loading component.\r\nThe component mount and unmount a children component depending of a flag.\r\nWhen the component is unmount it fires this error:\r\n\r\n```\r\nUncaught TypeError: Cannot read property 'componentDidLeave' of undefined\r\n```"},"comment":{"url":"https://api.github.com/repos/misterfresh/react-easy-transition/issues/comments/228238328","html_url":"https://github.com/misterfresh/react-easy-transition/issues/7#issuecomment-228238328","issue_url":"https://api.github.com/repos/misterfresh/react-easy-transition/issues/7","id":228238328,"user":{"login":"aikssen","id":1864698,"avatar_url":"https://avatars.githubusercontent.com/u/1864698?v=3","gravatar_id":"","url":"https://api.github.com/users/aikssen","html_url":"https://github.com/aikssen","followers_url":"https://api.github.com/users/aikssen/followers","following_url":"https://api.github.com/users/aikssen/following{/other_user}","gists_url":"https://api.github.com/users/aikssen/gists{/gist_id}","starred_url":"https://api.github.com/users/aikssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aikssen/subscriptions","organizations_url":"https://api.github.com/users/aikssen/orgs","repos_url":"https://api.github.com/users/aikssen/repos","events_url":"https://api.github.com/users/aikssen/events{/privacy}","received_events_url":"https://api.github.com/users/aikssen/received_events","type":"User","site_admin":false},"created_at":"2016-06-24T02:06:09Z","updated_at":"2016-06-24T02:06:09Z","body":"Actually my `loading` flag is a boolean that changes from `false` when the app is requesting data to the api, to `true` when the data is fetched correctly. \r\nThe `path` property only accepts string values, but converting `loading` to a string makes that the animation/transition runs twice, when `loading` changes its value.\r\n\r\nBy setting the `path` prop with any string, this solves my problem, for now.\r\n\r\n```\r\nconst properties = {\r\n    path: 'foo',\r\n    ...\r\n};\r\n```"}}
{"actor":{"display_login":"aikssen"}}