{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/react-redux/issues/292","repository_url":"https://api.github.com/repos/reactjs/react-redux","labels_url":"https://api.github.com/repos/reactjs/react-redux/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-redux/issues/292/comments","events_url":"https://api.github.com/repos/reactjs/react-redux/issues/292/events","html_url":"https://github.com/reactjs/react-redux/issues/292","id":134395492,"number":292,"title":"Can we avoid inconsistencies on non-batched dispatches?","user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2016-02-17T20:48:40Z","updated_at":"2016-04-30T14:43:27Z","closed_at":null,"body":"Prompted by https://github.com/reactjs/redux/issues/1415, please read the discussion there. We currently subscribe in `componentDidMount` but it runs from children first. This has a potential of introducing inconsistencies when a child receives some update state earlier than its parent that passes a state-dependent prop to it.\r\n\r\nWould subscribing the parents first fix the inconsistencies? Can we do that somehow (e.g. by passing subscribers up via context)?\r\n\r\nAlternatively, can/should we wrap `dispatch` into `ReactDOM.unstable_batchedUpdates()` by default like Relay does?\r\n\r\ncc @epeli @chandlerprall @tappleby @acdlite "},"comment":{"url":"https://api.github.com/repos/reactjs/react-redux/issues/comments/215970845","html_url":"https://github.com/reactjs/react-redux/issues/292#issuecomment-215970845","issue_url":"https://api.github.com/repos/reactjs/react-redux/issues/292","id":215970845,"user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T14:43:27Z","updated_at":"2016-04-30T14:43:27Z","body":"AFAIK the plan in React is to always batch eventually so this might become a non-issue later. "}}