Skip to content

fix: flashlist scrollto behaviour v8 backport#3608

Merged
isekovanic merged 4 commits into
V8-releasefrom
fix/flashlist-scrollto-fixes-backport
May 19, 2026
Merged

fix: flashlist scrollto behaviour v8 backport#3608
isekovanic merged 4 commits into
V8-releasefrom
fix/flashlist-scrollto-fixes-backport

Conversation

@isekovanic
Copy link
Copy Markdown
Contributor

🎯 Goal

This is a backport of this PR towards V8. All details are in its description.

πŸ›  Implementation details

🎨 UI Changes

iOS
Before After
Android
Before After

πŸ§ͺ Testing

β˜‘οΈ Checklist

  • I have signed the Stream CLA (required)
  • PR targets the develop branch
  • Documentation is updated
  • New code is tested in main example apps, including all possible scenarios
    • SampleApp iOS and Android
    • Expo iOS and Android

Backports two MessageFlashList scroll-to fixes from develop:

1. Quoted-message scroll-to no longer snaps back to the bottom when the
   target is already in the loaded messageSet. The scrollToIndex call is
   re-issued inside nested requestAnimationFrames so the second one
   reconciles after MVCP's pending scroll fires.
2. Initial scroll-to-first-unread no longer loses the race against the
   mount-time scrollToEnd. Channel now exposes a hasPendingInitialTargetLoad
   predicate that MessageFlashList checks before running its automatic
   scrollToEnd on mount / autoscrollToRecent changes.

Key order differs minimally from develop because V8 still enforces the
sort-keys ESLint rule that develop has dropped; the patch is otherwise
identical.

(cherry picked from commit bc8eb82)
@isekovanic isekovanic requested review from oliverlaz and szuperaz May 19, 2026 19:23
@Stream-SDK-Bot
Copy link
Copy Markdown
Contributor

Stream-SDK-Bot commented May 19, 2026

SDK Size

title develop branch diff status
js_bundle_size 368 KB 304 KB -64573 B πŸš€

@github-actions
Copy link
Copy Markdown

No changelog generated for the current changes on this pull request.

@isekovanic isekovanic merged commit 04f9508 into V8-release May 19, 2026
6 checks passed
@isekovanic isekovanic deleted the fix/flashlist-scrollto-fixes-backport branch May 19, 2026 19:51
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.

3 participants