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

scroller: use subset of messages from chat window #3346

Conversation

patosullivan
Copy link
Member

@patosullivan patosullivan commented Mar 18, 2024

This fixes LAND-1553 by forcing the scroller to invert/uninvert more often by only giving it a small set of already cached messages to start off with, and progressively adding messages as necessary (as the user scrolls up or down).

This should be ready for review/banging-on.

…sage page size, memoize messages from useInfinitePosts to prevent unnecessary re-renders, use scrollElement height when we flip in the chat scroller
Copy link

linear bot commented Mar 18, 2024

@patosullivan patosullivan changed the title scroller: use subset of messages from chat window (WIP) scroller: use subset of messages from chat window Mar 20, 2024
@patosullivan patosullivan marked this pull request as ready for review March 20, 2024 17:31
@latter-bolden
Copy link
Member

Code makes sense. Banging on it locally, 1) I did hit an instance of a scroll loop in Internet Cafe and 2) got it to lock up where I was at the top of the scroll and older messages didn't load in despite there being more in the channel.

Have to pivot off this for now, but will try to pinpoint specific steps to repro.

@arthyn
Copy link
Member

arthyn commented Mar 28, 2024

@patosullivan were you able to repro what @latter-bolden saw?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants