Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken scroll behaviour on index and profile page #2487

Closed
wants to merge 1 commit into from

Conversation

Tirokk
Copy link
Member

@Tirokk Tirokk commented Oct 5, 2020

roschaefer Authored by roschaefer
Dec 10, 2019
Merged Dec 13, 2019


I don't know where the bug originates. But it can only be that either
previousResult or fetchMore result is sometimes undefined. This
should make the function bullet-proof for these situations.

🍰 Pullrequest

Issues

  • None

Todo

  • None

I don't know where the bug originates. But it can only be that either
`previousResult` or `fetchMore` result is sometimes undefined. This
should make the function bullet-proof for these situations.
@Tirokk
Copy link
Member Author

Tirokk commented Oct 7, 2020

cypress[bot] Authored by cypress[bot]
Dec 11, 2019




Test summary

50 0 0 0


Run details

Project Human-Connection
Status Passed
Commit d48c10c2cd
Started Dec 10, 2019 10:53 PM
Ended Dec 10, 2019 11:07 PM
Duration 14:26 💡
OS Linux Ubuntu Linux - 16.04
Browser Chromium 78

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@Tirokk
Copy link
Member Author

Tirokk commented Oct 7, 2020

mattwr18 Authored by mattwr18
Dec 11, 2019


maybe, we should test it out in staging? it certainly doesn't seem to hurt, but maybe you want to have another stab at it?

@Tirokk
Copy link
Member Author

Tirokk commented Oct 7, 2020

roschaefer Authored by roschaefer
Dec 13, 2019


@mattwr18 I didn't see your comment. This problem is not being solved with this PR. Instead, on my browser, sometimes the scroll would hang. That is the case when you have runtime errors during onUpdate.

@Tirokk
Copy link
Member Author

Tirokk commented Oct 7, 2020

roschaefer Authored by roschaefer
Dec 13, 2019


The problem of your screenshot is not that scrolling simply stops. Instead, new posts are getting added all the time and since they don't have a height, the scrolling gets triggered all the time. Like many times in short succession.

@Mogge Mogge closed this Oct 8, 2020
@ulfgebhardt ulfgebhardt deleted the pr2487head branch January 7, 2021 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants