{"action":"created","issue":{"url":"https://api.github.com/repos/styled-components/babel-plugin-styled-components/issues/24","repository_url":"https://api.github.com/repos/styled-components/babel-plugin-styled-components","labels_url":"https://api.github.com/repos/styled-components/babel-plugin-styled-components/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/styled-components/babel-plugin-styled-components/issues/24/comments","events_url":"https://api.github.com/repos/styled-components/babel-plugin-styled-components/issues/24/events","html_url":"https://github.com/styled-components/babel-plugin-styled-components/issues/24","id":201342468,"number":24,"title":"Need better way to determine componentId","user":{"login":"vdanchenkov","id":2461813,"avatar_url":"https://avatars.githubusercontent.com/u/2461813?v=3","gravatar_id":"","url":"https://api.github.com/users/vdanchenkov","html_url":"https://github.com/vdanchenkov","followers_url":"https://api.github.com/users/vdanchenkov/followers","following_url":"https://api.github.com/users/vdanchenkov/following{/other_user}","gists_url":"https://api.github.com/users/vdanchenkov/gists{/gist_id}","starred_url":"https://api.github.com/users/vdanchenkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdanchenkov/subscriptions","organizations_url":"https://api.github.com/users/vdanchenkov/orgs","repos_url":"https://api.github.com/users/vdanchenkov/repos","events_url":"https://api.github.com/users/vdanchenkov/events{/privacy}","received_events_url":"https://api.github.com/users/vdanchenkov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-01-17T16:49:28Z","updated_at":"2017-02-04T11:04:31Z","closed_at":null,"body":"I was able to get duplicates with `create-react-app` setup because it uses babel-loader with cache enabled.\r\n\r\nConsidering other options.\r\n- `path.hub.file.code`\r\n- `path.hub.file.sourceFileName` and last part of `path.hub.file.sourceRoot`\r\n- `path.hub.file.filename`\r\n\r\n`code` hash is the most reliable, but it will break if we have two files with exactly the same source. For other options we'll have ask user to configure babel to provide `sourceRoot` and `fileName`"},"comment":{"url":"https://api.github.com/repos/styled-components/babel-plugin-styled-components/issues/comments/277435808","html_url":"https://github.com/styled-components/babel-plugin-styled-components/issues/24#issuecomment-277435808","issue_url":"https://api.github.com/repos/styled-components/babel-plugin-styled-components/issues/24","id":277435808,"user":{"login":"mxstbr","id":7525670,"avatar_url":"https://avatars.githubusercontent.com/u/7525670?v=3","gravatar_id":"","url":"https://api.github.com/users/mxstbr","html_url":"https://github.com/mxstbr","followers_url":"https://api.github.com/users/mxstbr/followers","following_url":"https://api.github.com/users/mxstbr/following{/other_user}","gists_url":"https://api.github.com/users/mxstbr/gists{/gist_id}","starred_url":"https://api.github.com/users/mxstbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxstbr/subscriptions","organizations_url":"https://api.github.com/users/mxstbr/orgs","repos_url":"https://api.github.com/users/mxstbr/repos","events_url":"https://api.github.com/users/mxstbr/events{/privacy}","received_events_url":"https://api.github.com/users/mxstbr/received_events","type":"User","site_admin":false},"created_at":"2017-02-04T11:04:31Z","updated_at":"2017-02-04T11:04:31Z","body":"> Also, I'm going to drop displayName from component id. It can be added back in the runtime from the displayName field if needed.\r\n\r\nWhy? We want to have the component name in the `className`?"}}
{"actor":{"display_login":"mxstbr"}}