Closed alielmajdaoui closed 2 years ago
Is it possible if you could show me how you replaced the isLoading logic ?
Is it possible if you could show me how you replaced the isLoading logic ?
Please take a look at loadMoreData
function.
I am also facing the same issue with react-native version 0.64.3
.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
Description
After few hours of debugging the FlatList/VirtualizedList performance warning:
I have found that
ListFooterComponent
is causing the issue if we pass a dynamic value to it (e.g:ListFooterComponent={isLoading && <Footer />}
). If we pass a static value (e.g:ListFooterComponent={<Footer />}
, the warning will never appear.Version
0.66.0
Output of
npx react-native info
System: OS: macOS 11.6 CPU: Intel(R) Core i7 CPU @ 2.50GHz Memory: 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 14.17.6 - ~/.nvm/versions/node/v14.17.6/bin/node Yarn: 1.22.11 - /usr/local/bin/yarn npm: 6.14.15 - ~/.nvm/versions/node/v14.17.6/bin/npm Watchman: 2021.09.06.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0 IDEs: Xcode: 13.1/13A1030d - /usr/bin/xcodebuild npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.0 => 0.66.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
Snack, code example, screenshot, or link to a repository