{"action":"created","issue":{"url":"https://api.github.com/repos/uniflow/uniflow/issues/6","labels_url":"https://api.github.com/repos/uniflow/uniflow/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/uniflow/uniflow/issues/6/comments","events_url":"https://api.github.com/repos/uniflow/uniflow/issues/6/events","html_url":"https://github.com/uniflow/uniflow/pull/6","id":62522993,"number":6,"title":"Add replaceState method to stores","user":{"login":"brentburg","id":225624,"avatar_url":"https://avatars.githubusercontent.com/u/225624?v=3","gravatar_id":"","url":"https://api.github.com/users/brentburg","html_url":"https://github.com/brentburg","followers_url":"https://api.github.com/users/brentburg/followers","following_url":"https://api.github.com/users/brentburg/following{/other_user}","gists_url":"https://api.github.com/users/brentburg/gists{/gist_id}","starred_url":"https://api.github.com/users/brentburg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brentburg/subscriptions","organizations_url":"https://api.github.com/users/brentburg/orgs","repos_url":"https://api.github.com/users/brentburg/repos","events_url":"https://api.github.com/users/brentburg/events{/privacy}","received_events_url":"https://api.github.com/users/brentburg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-17T21:30:53Z","updated_at":"2015-03-17T21:40:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/uniflow/uniflow/pulls/6","html_url":"https://github.com/uniflow/uniflow/pull/6","diff_url":"https://github.com/uniflow/uniflow/pull/6.diff","patch_url":"https://github.com/uniflow/uniflow/pull/6.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/uniflow/uniflow/issues/comments/82609906","html_url":"https://github.com/uniflow/uniflow/pull/6#issuecomment-82609906","issue_url":"https://api.github.com/repos/uniflow/uniflow/issues/6","id":82609906,"user":{"login":"thetalecrafter","id":270632,"avatar_url":"https://avatars.githubusercontent.com/u/270632?v=3","gravatar_id":"","url":"https://api.github.com/users/thetalecrafter","html_url":"https://github.com/thetalecrafter","followers_url":"https://api.github.com/users/thetalecrafter/followers","following_url":"https://api.github.com/users/thetalecrafter/following{/other_user}","gists_url":"https://api.github.com/users/thetalecrafter/gists{/gist_id}","starred_url":"https://api.github.com/users/thetalecrafter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thetalecrafter/subscriptions","organizations_url":"https://api.github.com/users/thetalecrafter/orgs","repos_url":"https://api.github.com/users/thetalecrafter/repos","events_url":"https://api.github.com/users/thetalecrafter/events{/privacy}","received_events_url":"https://api.github.com/users/thetalecrafter/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T21:40:09Z","updated_at":"2015-03-17T21:40:09Z","body":"Could it just be this?\r\n\r\n```js\r\n  setState(change) {\r\n    this.replaceState(assign({}, this.state, change))\r\n  },\r\n  replaceState(newState) {\r\n    if (!objEql(newState, this.state)) {\r\n      this.state = Object.freeze(newState)\r\n      this.emit('change')\r\n    }\r\n  }\r\n```"}}