{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/react/issues/14482","repository_url":"https://api.github.com/repos/facebook/react","labels_url":"https://api.github.com/repos/facebook/react/issues/14482/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/14482/comments","events_url":"https://api.github.com/repos/facebook/react/issues/14482/events","html_url":"https://github.com/facebook/react/issues/14482","id":393573139,"node_id":"MDU6SXNzdWUzOTM1NzMxMzk=","number":14482,"title":"Hooks performance problem when passing only event handler into component","user":{"login":"budarin","id":8055157,"node_id":"MDQ6VXNlcjgwNTUxNTc=","avatar_url":"https://avatars2.githubusercontent.com/u/8055157?v=4","gravatar_id":"","url":"https://api.github.com/users/budarin","html_url":"https://github.com/budarin","followers_url":"https://api.github.com/users/budarin/followers","following_url":"https://api.github.com/users/budarin/following{/other_user}","gists_url":"https://api.github.com/users/budarin/gists{/gist_id}","starred_url":"https://api.github.com/users/budarin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/budarin/subscriptions","organizations_url":"https://api.github.com/users/budarin/orgs","repos_url":"https://api.github.com/users/budarin/repos","events_url":"https://api.github.com/users/budarin/events{/privacy}","received_events_url":"https://api.github.com/users/budarin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-12-21T19:51:33Z","updated_at":"2018-12-21T22:42:46Z","closed_at":"2018-12-21T22:42:46Z","author_association":"NONE","body":"<!--\r\n  Note: if the issue is about documentation or the website, please file it at:\r\n  https://github.com/reactjs/reactjs.org/issues/new\r\n-->\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\nNo.\r\n\r\n**What is the current behavior?**\r\nWhen I pass a eventHandler memoized with useCallback it forces component render every time when a memoization parameter is changed. \r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:**\r\n\r\nHere is link to [sandbox ](https://codesandbox.io/s/l5wrq94y37)\r\nEvery time we click on the button the Content is rendered when it should not.\r\n\r\n**What is the expected behavior?**\r\nEvent handler should not force a component to render every time when a memoize parameter is changed.\r\n\r\n**Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?**\r\n\r\nOS: any\r\n\"react\": \"^16.7.0-alpha.2\",\r\n\"react-dom\": \"^16.7.0-alpha.2\",\r\n"}}
{"actor":{"display_login":"budarin"}}