{"action":"opened","issue":{"url":"https://api.github.com/repos/dekujs/deku/issues/226","labels_url":"https://api.github.com/repos/dekujs/deku/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/dekujs/deku/issues/226/comments","events_url":"https://api.github.com/repos/dekujs/deku/issues/226/events","html_url":"https://github.com/dekujs/deku/issues/226","id":99825637,"number":226,"title":"calling setState in onInput should trigger rerender but does not","user":{"login":"ndhoule","id":1863990,"avatar_url":"https://avatars.githubusercontent.com/u/1863990?v=3","gravatar_id":"","url":"https://api.github.com/users/ndhoule","html_url":"https://github.com/ndhoule","followers_url":"https://api.github.com/users/ndhoule/followers","following_url":"https://api.github.com/users/ndhoule/following{/other_user}","gists_url":"https://api.github.com/users/ndhoule/gists{/gist_id}","starred_url":"https://api.github.com/users/ndhoule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndhoule/subscriptions","organizations_url":"https://api.github.com/users/ndhoule/orgs","repos_url":"https://api.github.com/users/ndhoule/repos","events_url":"https://api.github.com/users/ndhoule/events{/privacy}","received_events_url":"https://api.github.com/users/ndhoule/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-08T18:29:01Z","updated_at":"2015-08-08T18:29:01Z","closed_at":null,"body":"Calling `setState` inside of an `onInput` handler doesn't trigger a rerender.\r\n\r\nAn example, where `SearchBar` is an `input` that accepts text content:\r\n\r\n```js\r\nlet handleUserInput = function(event, _, setState) {\r\n  setState({\r\n    filterText: event.target.value || ''\r\n  });\r\n};\r\n\r\nlet FilterableList = {\r\n  render({ props, state }) {\r\n    debugger;\r\n    return (\r\n      <div>\r\n        <SearchBar\r\n          filterText={ state.filterText }\r\n          onInput={ handleUserInput }\r\n        />\r\n        <IntegrationList\r\n          integrations={ props.integrations }\r\n          filterText = { state.filterText }\r\n        />\r\n      </div>\r\n    );\r\n  }\r\n};\r\n```\r\n\r\nI've confirmed that the content of the text box changes every time. Using Deku 0.5.0."}}