{"action":"closed","issue":{"url":"https://api.github.com/repos/taion/react-router-scroll/issues/20","repository_url":"https://api.github.com/repos/taion/react-router-scroll","labels_url":"https://api.github.com/repos/taion/react-router-scroll/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/taion/react-router-scroll/issues/20/comments","events_url":"https://api.github.com/repos/taion/react-router-scroll/issues/20/events","html_url":"https://github.com/taion/react-router-scroll/issues/20","id":160545039,"number":20,"title":"integration with react-router-relay","user":{"login":"tomconroy","id":1223187,"avatar_url":"https://avatars.githubusercontent.com/u/1223187?v=3","gravatar_id":"","url":"https://api.github.com/users/tomconroy","html_url":"https://github.com/tomconroy","followers_url":"https://api.github.com/users/tomconroy/followers","following_url":"https://api.github.com/users/tomconroy/following{/other_user}","gists_url":"https://api.github.com/users/tomconroy/gists{/gist_id}","starred_url":"https://api.github.com/users/tomconroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomconroy/subscriptions","organizations_url":"https://api.github.com/users/tomconroy/orgs","repos_url":"https://api.github.com/users/tomconroy/repos","events_url":"https://api.github.com/users/tomconroy/events{/privacy}","received_events_url":"https://api.github.com/users/tomconroy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-15T23:16:03Z","updated_at":"2016-06-15T23:17:58Z","closed_at":"2016-06-15T23:17:58Z","body":"Is it possible to scroll only *after* relay has finished loading?\r\n\r\nI can get it to work but it's a hack:\r\n\r\n```\r\nuseScroll((prevRouterProps, props) => {\r\n  if (!props.queryAggregator.readyState.done) {\r\n    return false;\r\n  }\r\n  return true;\r\n})\r\n\r\n...\r\n   \r\nconst render = ({ done }) => {\r\n  if (done) {\r\n    if (typeof window !== 'undefined') {\r\n      window.scrollTo(0, 0);\r\n    }\r\n  }\r\n}\r\n\r\n...\r\n<Route ... render={render} />\r\n```"}}
{"actor":{"display_login":"taion"}}