{"action":"opened","issue":{"url":"https://api.github.com/repos/rackt/scroll-behavior/issues/21","labels_url":"https://api.github.com/repos/rackt/scroll-behavior/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/rackt/scroll-behavior/issues/21/comments","events_url":"https://api.github.com/repos/rackt/scroll-behavior/issues/21/events","html_url":"https://github.com/rackt/scroll-behavior/issues/21","id":121208748,"number":21,"title":"Scroll position incorrectly updating before transition complete","user":{"login":"AndrewIngram","id":35227,"avatar_url":"https://avatars.githubusercontent.com/u/35227?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewIngram","html_url":"https://github.com/AndrewIngram","followers_url":"https://api.github.com/users/AndrewIngram/followers","following_url":"https://api.github.com/users/AndrewIngram/following{/other_user}","gists_url":"https://api.github.com/users/AndrewIngram/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewIngram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewIngram/subscriptions","organizations_url":"https://api.github.com/users/AndrewIngram/orgs","repos_url":"https://api.github.com/users/AndrewIngram/repos","events_url":"https://api.github.com/users/AndrewIngram/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewIngram/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-09T10:41:23Z","updated_at":"2015-12-09T10:41:23Z","closed_at":null,"body":"It's hard to identify where in the chain this is breaking. I'm using react-router and react-router-relay.\r\n\r\n# What happens\r\n\r\n* I click a link\r\n* The address bar updates and the browser scrolls to the top (hard to say what order these two things happen in)\r\n* Data loads\r\n* The new component renders\r\n\r\n# What I expect (to mimic non client-side routing)\r\n\r\n* I click a link\r\n* Data loads\r\n* The new component renders, address bar is updated and browser scrolls to the top\r\n\r\n\r\nTLDR; The scroll-to-top happens immediately and is applied to the current route, rather than the new route, which is confusing my users."}}