{"action":"closed","issue":{"url":"https://api.github.com/repos/reflux/refluxjs/issues/242","labels_url":"https://api.github.com/repos/reflux/refluxjs/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/reflux/refluxjs/issues/242/comments","events_url":"https://api.github.com/repos/reflux/refluxjs/issues/242/events","html_url":"https://github.com/reflux/refluxjs/issues/242","id":57712556,"number":242,"title":"connect() should use replaceState()","user":{"login":"Turbo87","id":141300,"avatar_url":"https://avatars.githubusercontent.com/u/141300?v=3","gravatar_id":"","url":"https://api.github.com/users/Turbo87","html_url":"https://github.com/Turbo87","followers_url":"https://api.github.com/users/Turbo87/followers","following_url":"https://api.github.com/users/Turbo87/following{/other_user}","gists_url":"https://api.github.com/users/Turbo87/gists{/gist_id}","starred_url":"https://api.github.com/users/Turbo87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Turbo87/subscriptions","organizations_url":"https://api.github.com/users/Turbo87/orgs","repos_url":"https://api.github.com/users/Turbo87/repos","events_url":"https://api.github.com/users/Turbo87/events{/privacy}","received_events_url":"https://api.github.com/users/Turbo87/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/reflux/refluxjs/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-15T00:43:17Z","updated_at":"2016-02-02T04:42:00Z","closed_at":"2016-02-02T04:42:00Z","body":"https://github.com/spoike/refluxjs/blob/master/src/connect.js#L17 should be changed to use `replaceState()` instead of `setState()`.\r\n\r\nIf my store has data `{a: 5, b: 10}` and the data changes to `{a: 5, c: 15}` the state of the connected components will now be `{a: 5, b: 10, c: 15}`. I consider this a bug since I expected the `connect()` function to always sync the store data with the component state."}}