{"action":"created","issue":{"url":"https://api.github.com/repos/react-component/slider/issues/357","repository_url":"https://api.github.com/repos/react-component/slider","labels_url":"https://api.github.com/repos/react-component/slider/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/react-component/slider/issues/357/comments","events_url":"https://api.github.com/repos/react-component/slider/issues/357/events","html_url":"https://github.com/react-component/slider/issues/357","id":272505316,"number":357,"title":"Stateless function components cannot be given refs - Warning when using slider with React 16","user":{"login":"nicmosc","id":16778318,"avatar_url":"https://avatars0.githubusercontent.com/u/16778318?v=4","gravatar_id":"","url":"https://api.github.com/users/nicmosc","html_url":"https://github.com/nicmosc","followers_url":"https://api.github.com/users/nicmosc/followers","following_url":"https://api.github.com/users/nicmosc/following{/other_user}","gists_url":"https://api.github.com/users/nicmosc/gists{/gist_id}","starred_url":"https://api.github.com/users/nicmosc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicmosc/subscriptions","organizations_url":"https://api.github.com/users/nicmosc/orgs","repos_url":"https://api.github.com/users/nicmosc/repos","events_url":"https://api.github.com/users/nicmosc/events{/privacy}","received_events_url":"https://api.github.com/users/nicmosc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-09T10:05:43Z","updated_at":"2017-11-13T09:08:07Z","closed_at":null,"author_association":"NONE","body":"rc-slider version: 8.4.0\r\nreact version: 16.0\r\n\r\nWhen used in this context:\r\n```\r\n<Slider\r\n          min={data.minCredit}\r\n          max={data.maxCredit}\r\n          step={data.step}\r\n          value={credits}\r\n          handle={(props) => <CreditHandle {...props} ranges={data.bonusRanges} getCurrentRange={getCurrentRange} />}\r\n          onChange={(v) => onChange(v)}\r\n          variation=\"alt\"\r\n        />\r\n```\r\nthe following warning is raised\r\n```\r\nWarning: Stateless function components cannot be given refs. Attempts to access this ref will fail.\r\n\r\nCheck the render method of `ComponentEnhancer(undefined)`.\r\n    in CreditHandle (created by ComponentEnhancer(undefined))\r\n    in div\r\n    in ComponentEnhancer(undefined)\r\n```\r\n\r\nWasn't able to spot the stateless component where refs are given, maybe someone can find it?"},"comment":{"url":"https://api.github.com/repos/react-component/slider/issues/comments/343855934","html_url":"https://github.com/react-component/slider/issues/357#issuecomment-343855934","issue_url":"https://api.github.com/repos/react-component/slider/issues/357","id":343855934,"user":{"login":"sPaCeMoNk3yIam","id":6573611,"avatar_url":"https://avatars1.githubusercontent.com/u/6573611?v=4","gravatar_id":"","url":"https://api.github.com/users/sPaCeMoNk3yIam","html_url":"https://github.com/sPaCeMoNk3yIam","followers_url":"https://api.github.com/users/sPaCeMoNk3yIam/followers","following_url":"https://api.github.com/users/sPaCeMoNk3yIam/following{/other_user}","gists_url":"https://api.github.com/users/sPaCeMoNk3yIam/gists{/gist_id}","starred_url":"https://api.github.com/users/sPaCeMoNk3yIam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sPaCeMoNk3yIam/subscriptions","organizations_url":"https://api.github.com/users/sPaCeMoNk3yIam/orgs","repos_url":"https://api.github.com/users/sPaCeMoNk3yIam/repos","events_url":"https://api.github.com/users/sPaCeMoNk3yIam/events{/privacy}","received_events_url":"https://api.github.com/users/sPaCeMoNk3yIam/received_events","type":"User","site_admin":false},"created_at":"2017-11-13T09:08:07Z","updated_at":"2017-11-13T09:08:07Z","author_association":"NONE","body":"Can confirm this. `react-test-renderer` fails to render snapshot."}}
{"actor":{"display_login":"sPaCeMoNk3yIam"}}