Skip to content

fix(MessageList): prevent message pagination too early on mount#3143

Open
MartinCupela wants to merge 1 commit intomasterfrom
fix/prevent-message-list-pagination-too-early-on-mount
Open

fix(MessageList): prevent message pagination too early on mount#3143
MartinCupela wants to merge 1 commit intomasterfrom
fix/prevent-message-list-pagination-too-early-on-mount

Conversation

@MartinCupela
Copy link
Copy Markdown
Contributor

🎯 Goal

Prevent pagination while the MessageList content is being mounted with the initial page content

It solves a threshold/race issue where:

  • At viewport height 941px, message list bottom offset is 250, so no extra pagination fires; list stays at bottom.
  • At viewport height 942px, bottom offset becomes 249, which is < 250, so reverse infinite-scroll treats it as “near top” and auto-loads older messages.

@github-actions
Copy link
Copy Markdown

Size Change: +75 B (+0.01%)

Total Size: 619 kB

📦 View Changed
Filename Size Change
dist/cjs/index.js 240 kB +39 B (+0.02%)
dist/es/index.mjs 239 kB +36 B (+0.02%)
ℹ️ View Unchanged
Filename Size
dist/cjs/audioProcessing.js 1.32 kB
dist/cjs/emojis.js 3.01 kB
dist/cjs/mp3-encoder.js 1.27 kB
dist/cjs/WithAudioPlayback.js 44.7 kB
dist/css/emoji-picker.css 178 B
dist/css/emoji-replacement.css 456 B
dist/css/index.css 39.3 kB
dist/es/audioProcessing.mjs 1.31 kB
dist/es/emojis.mjs 2.52 kB
dist/es/mp3-encoder.mjs 756 B
dist/es/WithAudioPlayback.mjs 44.5 kB

compressed-size-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant