Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Are re-renders on scroll an expected behavior? #1882

Unanswered
florian-deroo asked this question in Q&A
Discussion options

Hi,

I'm using FlashList and I've noticed that the component itself re-renders every time I scroll. I'm trying to determine if this is the expected behavior for the library (e.g., due to view recycling) or if I might have an issue in my implementation.

I've used a whyDidYouUpdate tool and it doesn't show any prop changes that would trigger these re-renders. Additionally, as you can see in the attached profiler screenshot, none of the parent or child components around FlashList are re-rendering; the re-renders are isolated to the FlashList component itself.

Could you please clarify if this is the intended behavior?

Thanks for your help!
image

You must be logged in to vote

Replies: 1 comment

Comment options

Yes this is completely normal. The body of the list does some when needed and decides whether children should update or now. This process is super quick in most cases especially with dev off.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /