{"action":"opened","issue":{"url":"https://api.github.com/repos/ParsePlatform/ParseReact/issues/15","labels_url":"https://api.github.com/repos/ParsePlatform/ParseReact/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/ParseReact/issues/15/comments","events_url":"https://api.github.com/repos/ParsePlatform/ParseReact/issues/15/events","html_url":"https://github.com/ParsePlatform/ParseReact/issues/15","id":67475842,"number":15,"title":"observe() Dependent on State","user":{"login":"DavidHarrison","id":2935011,"avatar_url":"https://avatars.githubusercontent.com/u/2935011?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidHarrison","html_url":"https://github.com/DavidHarrison","followers_url":"https://api.github.com/users/DavidHarrison/followers","following_url":"https://api.github.com/users/DavidHarrison/following{/other_user}","gists_url":"https://api.github.com/users/DavidHarrison/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidHarrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidHarrison/subscriptions","organizations_url":"https://api.github.com/users/DavidHarrison/orgs","repos_url":"https://api.github.com/users/DavidHarrison/repos","events_url":"https://api.github.com/users/DavidHarrison/events{/privacy}","received_events_url":"https://api.github.com/users/DavidHarrison/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-10T00:02:18Z","updated_at":"2015-04-10T00:02:18Z","closed_at":null,"body":"I have a React component with a number of tabs, each dependent on different Parse queries. I have made observe() dependent on the currently selected tab, which is stored in the component's state. When observe is called, it is done with the state before the setState() call that sets off the process. However, render is called with the state after setState(), which misaligns the the component's data with the data needed by the tab.\r\n\r\nI believe this is because React does not update state until just before rendering (facebook/react#629).\r\n\r\nWill this be fixed with #1?"}}