{"action":"created","issue":{"url":"https://api.github.com/repos/nkbt/react-works/issues/139","repository_url":"https://api.github.com/repos/nkbt/react-works","labels_url":"https://api.github.com/repos/nkbt/react-works/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/nkbt/react-works/issues/139/comments","events_url":"https://api.github.com/repos/nkbt/react-works/issues/139/events","html_url":"https://github.com/nkbt/react-works/issues/139","id":313417792,"number":139,"title":"timer isn't reset when timeout changes","user":{"login":"jedwards1211","id":1448194,"avatar_url":"https://avatars0.githubusercontent.com/u/1448194?v=4","gravatar_id":"","url":"https://api.github.com/users/jedwards1211","html_url":"https://github.com/jedwards1211","followers_url":"https://api.github.com/users/jedwards1211/followers","following_url":"https://api.github.com/users/jedwards1211/following{/other_user}","gists_url":"https://api.github.com/users/jedwards1211/gists{/gist_id}","starred_url":"https://api.github.com/users/jedwards1211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedwards1211/subscriptions","organizations_url":"https://api.github.com/users/jedwards1211/orgs","repos_url":"https://api.github.com/users/jedwards1211/repos","events_url":"https://api.github.com/users/jedwards1211/events{/privacy}","received_events_url":"https://api.github.com/users/jedwards1211/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-11T17:26:40Z","updated_at":"2018-04-12T00:30:06Z","closed_at":null,"author_association":"NONE","body":"if the timeout is set to `60000` and I render the component a moment later with a timeout of `1000`, the callback still doesn't get called until the original `60000 ms` is up.  Looking at the code it only resets the timer if `enabled` changes.  I'm not sure if this is desirable behavior for any use cases, but it's not for mine, so it would be nice to at least have an option to reset when the timeout changes."},"comment":{"url":"https://api.github.com/repos/nkbt/react-works/issues/comments/380636922","html_url":"https://github.com/nkbt/react-works/issues/139#issuecomment-380636922","issue_url":"https://api.github.com/repos/nkbt/react-works/issues/139","id":380636922,"user":{"login":"nkbt","id":175264,"avatar_url":"https://avatars0.githubusercontent.com/u/175264?v=4","gravatar_id":"","url":"https://api.github.com/users/nkbt","html_url":"https://github.com/nkbt","followers_url":"https://api.github.com/users/nkbt/followers","following_url":"https://api.github.com/users/nkbt/following{/other_user}","gists_url":"https://api.github.com/users/nkbt/gists{/gist_id}","starred_url":"https://api.github.com/users/nkbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkbt/subscriptions","organizations_url":"https://api.github.com/users/nkbt/orgs","repos_url":"https://api.github.com/users/nkbt/repos","events_url":"https://api.github.com/users/nkbt/events{/privacy}","received_events_url":"https://api.github.com/users/nkbt/received_events","type":"User","site_admin":false},"created_at":"2018-04-12T00:30:06Z","updated_at":"2018-04-12T00:30:06Z","author_association":"OWNER","body":"Which package are you talking about? There are several as part of this monorepo.\r\nAlso it would be good to have a codepen with reproducible bug."}}
{"actor":{"display_login":"nkbt"}}