-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FlatList] render same dataRow too much every time #14528
Comments
+1, this is happening to me too with SectionList, items re-render multiple times.
This happens on first render and also on scrolling |
same problem on Android Dev - Environment React Native version: 0.45.1 |
the same React Native version: 0.45.1 |
we're experiencing the same problem with FlatList React Native version: 0.44.2 |
Happening here too, is there any insights or progress into the matter? React Native version: 0.44.0 |
Happening for us too, with around 300 items my array I get several thousand calls to renderItem even with React Native version: 0.46.4 |
Upgrading to React Native 0.47.1 seems to have fixed it for me, it still seems to call renderItem quite a lot but there's a huge difference in performance now. |
Same thing for me. React Native version: 0.47.1 |
After some testing and debugging I managed to get this fixed by explicitly setting |
same. |
The same problem for me. The fundamental bug in this is that it is re-rendering everything for each extra 10 items. No official confirmation of this bug yet? React Native version: 0.48.1 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
It doesn't seem to be fixed yet. Can we open it? |
@lasuax did you try with the latest RN version? |
Experiencing the exact same issue with SectionList in "react-native": "0.50.3", Can also replicate with a simple sample project in "react-native": "0.51.0" |
Experiencing the exact same using "react-native": "0.45.1". |
Same with 0.51 ;/ |
This is happening to me too, I'll try to bring it up to core. Even when using
Options in my Currently testing on an Android device on 7.x, rn 0.50.4. We'll upgrade (pro) today to 52, I'll let you know if it gets better with the newer version. (possibly related: #14348) |
I'm experiencing this issue too, even in RN 0.52.2. Has anyone found a solution? |
Same issue any solution for this ? |
https://facebook.github.io/react-native/docs/flatlist.html use PureComponent for your list items as the docs suggest |
srsly still haven't had a solution for this ? |
Experiencing the same issue with RN 0.54.2. |
Is there any alternative/recommendation while this is not fixed? |
Had same issue. I had FlatList wrapped in a ScrollView, removing ScrollView wrapper fixed the problem |
Same issue here. |
Hey everyone, I got this issue fixed, I don't know why PureComponent does not fix this, but you just need to implement the shouldComponentUpdated method in your item component, try to check whether nextProps is still the same with the oldProps, then return false. |
Same issue here. |
"react-native": "^0.52.2" |
same with "react-native": "^0.55.2 any solution ? |
Confirming this behavior in: |
@losheredos let me be extremely clear here: that language is NOT tolerated here. I'm going to remove that comment & report you. |
Hello there 👋 this issue has been reported for an old version of React Native. Ideally we'd like everyone to be using 0.59 (see the awesome changes it brought) but we know updating can be a pain. We are going to close this issue because it's from a version before 0.57, which is really old. But please, if it's actually still an issue with 0.59 please comment below and we can reopen it 😊 |
Dev - Environment
Sample Code
Problems
Sample Code's console log
The text was updated successfully, but these errors were encountered: