-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[🐴] Remove extra spinner states from chat screen #3947
Conversation
Your Render PR Server URL is https://social-app-pr-3947.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-coutbsi1hbls73f4u7og. |
|
@@ -553,7 +553,7 @@ export class Convo { | |||
{ | |||
cursor: nextCursor, | |||
convoId: this.convoId, | |||
limit: isNative ? 40 : 60, | |||
limit: isNative ? 30 : 60, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be the same as initialNumToRender
in messagesList
. If it's larger, there will be a scroll animation on render.
I'd like to keep this below 30 if we can, especially whenever we start considering adding other content types than text (honestly we might need to decrease the number when that happens, at least on native)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heard chef 🫡
if ( | ||
convo.status === ConvoStatus.Uninitialized || | ||
convo.status === ConvoStatus.Initializing | ||
) { | ||
return ( | ||
<CenteredView style={a.flex_1} sideBorders> | ||
<Header /> | ||
<ListMaybePlaceholder isLoading /> | ||
</CenteredView> | ||
) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented on other PR already, but want to discuss this a bit. Not necessarily a blocker but want to be sure we can't do this another way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
Cherry picking this out of #3945, because it's really separate from that PR and I'd like to get this one in to test on device.