{"action":"created","issue":{"url":"https://api.github.com/repos/bloodyowl/react-styled/issues/4","repository_url":"https://api.github.com/repos/bloodyowl/react-styled","labels_url":"https://api.github.com/repos/bloodyowl/react-styled/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/bloodyowl/react-styled/issues/4/comments","events_url":"https://api.github.com/repos/bloodyowl/react-styled/issues/4/events","html_url":"https://github.com/bloodyowl/react-styled/issues/4","id":157488222,"number":4,"title":"Mount/Unmount count to avoid unstyling","user":{"login":"cusspvz","id":3604053,"avatar_url":"https://avatars.githubusercontent.com/u/3604053?v=3","gravatar_id":"","url":"https://api.github.com/users/cusspvz","html_url":"https://github.com/cusspvz","followers_url":"https://api.github.com/users/cusspvz/followers","following_url":"https://api.github.com/users/cusspvz/following{/other_user}","gists_url":"https://api.github.com/users/cusspvz/gists{/gist_id}","starred_url":"https://api.github.com/users/cusspvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cusspvz/subscriptions","organizations_url":"https://api.github.com/users/cusspvz/orgs","repos_url":"https://api.github.com/users/cusspvz/repos","events_url":"https://api.github.com/users/cusspvz/events{/privacy}","received_events_url":"https://api.github.com/users/cusspvz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-30T11:52:52Z","updated_at":"2016-05-30T12:20:36Z","closed_at":null,"body":"I was thinking on writing a `decorator` which would enable or disable `style/usable` webpack modules on mount and unmount... Guess what, you already had! 🎯 THANKS! :D\r\n\r\nJust one thing, this could possibly have an issue. I was thinking on having my `decorator` with a sort of a counter, so it would only unload styles when there aren't components mounted.\r\n\r\nOne brief example could be a button component, you could have one on a page header, if you enter a page where you have another, it will load styles again, but if you navigate outside of that page, the button o the header would be without styling. And I don't see where you're predicting that behavior on the code yet. \r\n"},"comment":{"url":"https://api.github.com/repos/bloodyowl/react-styled/issues/comments/222480674","html_url":"https://github.com/bloodyowl/react-styled/issues/4#issuecomment-222480674","issue_url":"https://api.github.com/repos/bloodyowl/react-styled/issues/4","id":222480674,"user":{"login":"bloodyowl","id":1688645,"avatar_url":"https://avatars.githubusercontent.com/u/1688645?v=3","gravatar_id":"","url":"https://api.github.com/users/bloodyowl","html_url":"https://github.com/bloodyowl","followers_url":"https://api.github.com/users/bloodyowl/followers","following_url":"https://api.github.com/users/bloodyowl/following{/other_user}","gists_url":"https://api.github.com/users/bloodyowl/gists{/gist_id}","starred_url":"https://api.github.com/users/bloodyowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bloodyowl/subscriptions","organizations_url":"https://api.github.com/users/bloodyowl/orgs","repos_url":"https://api.github.com/users/bloodyowl/repos","events_url":"https://api.github.com/users/bloodyowl/events{/privacy}","received_events_url":"https://api.github.com/users/bloodyowl/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T12:20:36Z","updated_at":"2016-05-30T12:20:36Z","body":"the counter is on webpack plugin's side (https://github.com/bloodyowl/react-styled/blob/master/src/index.js#L31, decrement on each unmount) this should work directly (or do you have a repro to show unusual behaviour with this?)"}}
{"actor":{"display_login":"bloodyowl"}}