{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/rfcs/issues/68","repository_url":"https://api.github.com/repos/reactjs/rfcs","labels_url":"https://api.github.com/repos/reactjs/rfcs/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/rfcs/issues/68/comments","events_url":"https://api.github.com/repos/reactjs/rfcs/issues/68/events","html_url":"https://github.com/reactjs/rfcs/pull/68","id":374028206,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1ODIzMDk3","number":68,"title":"RFC: React Hooks","user":{"login":"sebmarkbage","id":63648,"node_id":"MDQ6VXNlcjYzNjQ4","avatar_url":"https://avatars2.githubusercontent.com/u/63648?v=4","gravatar_id":"","url":"https://api.github.com/users/sebmarkbage","html_url":"https://github.com/sebmarkbage","followers_url":"https://api.github.com/users/sebmarkbage/followers","following_url":"https://api.github.com/users/sebmarkbage/following{/other_user}","gists_url":"https://api.github.com/users/sebmarkbage/gists{/gist_id}","starred_url":"https://api.github.com/users/sebmarkbage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebmarkbage/subscriptions","organizations_url":"https://api.github.com/users/sebmarkbage/orgs","repos_url":"https://api.github.com/users/sebmarkbage/repos","events_url":"https://api.github.com/users/sebmarkbage/events{/privacy}","received_events_url":"https://api.github.com/users/sebmarkbage/received_events","type":"User","site_admin":false},"labels":[{"id":771673915,"node_id":"MDU6TGFiZWw3NzE2NzM5MTU=","url":"https://api.github.com/repos/reactjs/rfcs/labels/CLA%20Signed","name":"CLA Signed","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":529,"created_at":"2018-10-25T16:20:37Z","updated_at":"2018-10-31T06:18:56Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/reactjs/rfcs/pulls/68","html_url":"https://github.com/reactjs/rfcs/pull/68","diff_url":"https://github.com/reactjs/rfcs/pull/68.diff","patch_url":"https://github.com/reactjs/rfcs/pull/68.patch"},"body":"In this RFC, we propose introducing *Hooks* to React. See the RFC and the documentation for more details.\r\n\r\nhttps://reactjs.org/docs/hooks-overview.html\r\n\r\n### [View formatted RFC](https://github.com/reactjs/rfcs/blob/hooks-rfc/text/0000-react-hooks.md)\r\n\r\n**(The [talk video](https://www.youtube.com/watch?v=dpw9EHDh2bM) has now been published too.)**"},"comment":{"url":"https://api.github.com/repos/reactjs/rfcs/issues/comments/434574288","html_url":"https://github.com/reactjs/rfcs/pull/68#issuecomment-434574288","issue_url":"https://api.github.com/repos/reactjs/rfcs/issues/68","id":434574288,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDU3NDI4OA==","user":{"login":"Volune","id":767553,"node_id":"MDQ6VXNlcjc2NzU1Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/767553?v=4","gravatar_id":"","url":"https://api.github.com/users/Volune","html_url":"https://github.com/Volune","followers_url":"https://api.github.com/users/Volune/followers","following_url":"https://api.github.com/users/Volune/following{/other_user}","gists_url":"https://api.github.com/users/Volune/gists{/gist_id}","starred_url":"https://api.github.com/users/Volune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Volune/subscriptions","organizations_url":"https://api.github.com/users/Volune/orgs","repos_url":"https://api.github.com/users/Volune/repos","events_url":"https://api.github.com/users/Volune/events{/privacy}","received_events_url":"https://api.github.com/users/Volune/received_events","type":"User","site_admin":false},"created_at":"2018-10-31T06:18:56Z","updated_at":"2018-10-31T06:18:56Z","author_association":"NONE","body":"> ```\r\n>   const reset = useCallback((currentState, prevRef) => {\r\n>     return () => {\r\n>       let [count, update] = currentState;\r\n>       prevRef.current = count;\r\n>       update(0);\r\n>     };\r\n>   });\r\n> ```\r\n@shavyg2 In current `useCallback` implementation, it will always return a new callback if you don't provide the dependencies list. (the default internal value for dependencies is `[callback]`)"}}
{"actor":{"display_login":"Volune"}}