{"action":"opened","issue":{"url":"https://api.github.com/repos/bvaughn/react-virtualized/issues/1077","repository_url":"https://api.github.com/repos/bvaughn/react-virtualized","labels_url":"https://api.github.com/repos/bvaughn/react-virtualized/issues/1077/labels{/name}","comments_url":"https://api.github.com/repos/bvaughn/react-virtualized/issues/1077/comments","events_url":"https://api.github.com/repos/bvaughn/react-virtualized/issues/1077/events","html_url":"https://github.com/bvaughn/react-virtualized/issues/1077","id":314269612,"number":1077,"title":"How to perform action strictly after scrollToIndex has already finished?","user":{"login":"oliverodaa","id":5886107,"avatar_url":"https://avatars2.githubusercontent.com/u/5886107?v=4","gravatar_id":"","url":"https://api.github.com/users/oliverodaa","html_url":"https://github.com/oliverodaa","followers_url":"https://api.github.com/users/oliverodaa/followers","following_url":"https://api.github.com/users/oliverodaa/following{/other_user}","gists_url":"https://api.github.com/users/oliverodaa/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverodaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverodaa/subscriptions","organizations_url":"https://api.github.com/users/oliverodaa/orgs","repos_url":"https://api.github.com/users/oliverodaa/repos","events_url":"https://api.github.com/users/oliverodaa/events{/privacy}","received_events_url":"https://api.github.com/users/oliverodaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-13T22:38:56Z","updated_at":"2018-04-13T22:38:56Z","closed_at":null,"author_association":"NONE","body":"Firstly I just want you to know that before posting this issue, I tried asking on Stack Overflow to no avail. Here is the link to the [unanswered post](https://stackoverflow.com/questions/49803905/is-there-a-way-to-execute-a-function-only-after-scrollto-has-finished-executing).\r\n\r\nI also tried to access the Slack channel but was not authorized to log in.\r\n\r\n------\r\n\r\nI have a `<List>` component. I am building a feature where it:\r\n\r\n1. **Scrolls to a particular row in the `<List>`**. It does by using the `scrollTo` prop.\r\n2. **Scrolls to a particular line in that row**. It does this by doing `document.getElementById('myId').scrollIntoView()`.\r\n\r\nHow can I ensure that step (2) occurs after step (1)?\r\n\r\n**Note:** I have already tried both `onRowsRendered` and `onScroll` but even using those callbacks, there is still a race condition between (2) and (1).\r\n\r\n[Here is the CodeSandbox link](https://codesandbox.io/s/zxkk4kppyl)\r\n"}}
{"actor":{"display_login":"oliverodaa"}}