Skip to content

Commit

Permalink
fix(#644): messages scroll flickering
Browse files Browse the repository at this point in the history
  • Loading branch information
maksim-v committed Dec 26, 2021
1 parent 26d933a commit 0e12af2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/message-list/message-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ const MessageList = () => {
{!areMessagesLoading || messagesIds?.length
? Boolean(messagesIds?.length) && (
<InfiniteScroll
triggerMargin={200}
debounceTime={100}
containerRef={rootRef}
onReachBottom={loadMore}
hasMore={hasMoreMessages}
Expand Down

0 comments on commit 0e12af2

Please sign in to comment.