{"action":"created","issue":{"url":"https://api.github.com/repos/gaearon/react-hot-loader/issues/279","repository_url":"https://api.github.com/repos/gaearon/react-hot-loader","labels_url":"https://api.github.com/repos/gaearon/react-hot-loader/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/gaearon/react-hot-loader/issues/279/comments","events_url":"https://api.github.com/repos/gaearon/react-hot-loader/issues/279/events","html_url":"https://github.com/gaearon/react-hot-loader/issues/279","id":152632021,"number":279,"title":"Babel plugin should recognize decorated classes","user":{"login":"zdavis","id":255909,"avatar_url":"https://avatars3.githubusercontent.com/u/255909?v=4","gravatar_id":"","url":"https://api.github.com/users/zdavis","html_url":"https://github.com/zdavis","followers_url":"https://api.github.com/users/zdavis/followers","following_url":"https://api.github.com/users/zdavis/following{/other_user}","gists_url":"https://api.github.com/users/zdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/zdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdavis/subscriptions","organizations_url":"https://api.github.com/users/zdavis/orgs","repos_url":"https://api.github.com/users/zdavis/repos","events_url":"https://api.github.com/users/zdavis/events{/privacy}","received_events_url":"https://api.github.com/users/zdavis/received_events","type":"User","site_admin":false},"labels":[{"id":113576978,"url":"https://api.github.com/repos/gaearon/react-hot-loader/labels/bug","name":"bug","color":"fc2929","default":true},{"id":113576981,"url":"https://api.github.com/repos/gaearon/react-hot-loader/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":30,"created_at":"2016-05-02T20:02:02Z","updated_at":"2017-11-13T14:34:54Z","closed_at":null,"author_association":"NONE","body":"(This may or may not be something you want to address with v3; if not, please just close this)\n\nOur project uses decorators to connect components to the redux store. I think this is fairly common. For example, you see it a lot in erikras/react-redux-universal-hot-example, which uses Babel 6 and  the \"transform-decorators-legacy\" Babel plugin, since Babel has decided to postpone decorator support until its more mature. For example:\n\nhttps://github.com/erikras/react-redux-universal-hot-example/blob/master/src/containers/Chat/Chat.js#L4\n\nThis worked fine with v2, but with v3 components that are decorated like this seem to lose their internal state when they're hot-reloaded.\n\nIf you want to look at this, let me know and I'll put together a sample repo that shows the problem. Thanks so much for your work on this! It's great to see all the activity on this project right now.\n\nbest,\nZach\n"},"comment":{"url":"https://api.github.com/repos/gaearon/react-hot-loader/issues/comments/343937023","html_url":"https://github.com/gaearon/react-hot-loader/issues/279#issuecomment-343937023","issue_url":"https://api.github.com/repos/gaearon/react-hot-loader/issues/279","id":343937023,"user":{"login":"lgra","id":885940,"avatar_url":"https://avatars2.githubusercontent.com/u/885940?v=4","gravatar_id":"","url":"https://api.github.com/users/lgra","html_url":"https://github.com/lgra","followers_url":"https://api.github.com/users/lgra/followers","following_url":"https://api.github.com/users/lgra/following{/other_user}","gists_url":"https://api.github.com/users/lgra/gists{/gist_id}","starred_url":"https://api.github.com/users/lgra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgra/subscriptions","organizations_url":"https://api.github.com/users/lgra/orgs","repos_url":"https://api.github.com/users/lgra/repos","events_url":"https://api.github.com/users/lgra/events{/privacy}","received_events_url":"https://api.github.com/users/lgra/received_events","type":"User","site_admin":false},"created_at":"2017-11-13T14:34:54Z","updated_at":"2017-11-13T14:34:54Z","author_association":"NONE","body":"Understand! Thanks a lot.\r\nI'm using class decorator without returning a new constructor method. In fact, I don't return anything, and let the mechanism default to the initial constructor - the one and only used by RHL.\r\nI'm using class decorators to enhance the class prototype, as a replacement to mixing mechanism. I will continue to use it this way ;-)\r\n"}}
{"actor":{"display_login":"lgra"}}