Skip to content

Conversation

mozzius
Copy link
Member

@mozzius mozzius commented Sep 25, 2025

In trying to chase down the android perf/crashing issues, I focused in on the explore page (as I got a crash there). while I am no closer on the crashes, I think I may have figured out how to improve the issue of the sticky headers in the feed preview freaking out.

Seems like setting a low maxToRenderPerBatch and then having stickyHeaderIndices that change dynamically don't mix well at all. I made a minimal repro so you can play around with it: https://github.com/mozzius/stickyindices-repro

You can fix the freakout by either:

  • Using a higher maxToRenderPerBatch
  • Keeping stickyHeaderIndices static

Since we have to have dynamic stickyHeaderIndices (as we add one every time we load another feed), the fix is to increase maxToRenderPerBatch. Surprisingly, increasing it improves both platforms, but has the downside of more "blank-outs" where nothing is visible. Hopefully new arch fixes this? Or maybe LegendList :)

Before

screen-20250925-175348.mp4

After

screen-20250925-175259.mp4

Copy link

Old size New size Diff
9.41 MB 9.41 MB -19 B (-0.00%)

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.

2 participants