Question regarding List Item not re-render when renderItem changes #694
Unanswered
mk-nickyang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team, I only started using FlashList recently and noticed List Item does not re-render when
renderItem
changes. Please see the example below.https://snack.expo.dev/@lucissa/shopify-flashlist-renderitem
(
renderItem
gets updated when thetime
state updates, but List Item still shows the initial time)Some existing issues are already related to this (e.g. #585, #505, #566), and the solution provided is to use
extraData
to force an update.So I want to confirm if List Item not re-render when
renderItem
changes is an expected behaviour. If so, I'm wondering if this should be mentioned in the docs since it's different from the RNFlatList
behaviour. And I assume we also don't need to memoizingrenderItem
,keyExtractor
etc. when usingFlashList
if that's the case?Beta Was this translation helpful? Give feedback.
All reactions