-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Excessive number of pending callbacks: 501. #34376
Comments
Same issue here when rendering this item: <TouchableOpacity
key={item.id}
onPress={async () => setResult(await getPickedImageResult(item))}>
<Image
style={{ width: size, height: size }}
source={{ uri: item.uri, width: item.width, height: item.height }}
/>
</TouchableOpacity> For me the warning triggers after some scrolling, sometimes after rendering 70 items, sometimes after more. Changing the TouchableOpacity to a Pressable component no more triggers the warning so I assume this is caused by TouchableOpacity? |
Yeah this seems to be caused by a change to TouchableOpacity in React Native 0.69.... (flattenStyle(prevProps.style)?.opacity !==
flattenStyle(this.props.style)?.opacity) !==
undefined is always going to evaluate to true, therefore calling Quick fix: remove the |
I get a similar error message but with react-native 0.68
|
@FrikkieSnyman yep 👍 I imagine it'll be released with React Native 0.72 unless it gets cherry picked onto 0.71 in the meantime |
With react-native 0.71.3 (expo sdk48) it is not fixed, so you still have to patch it.
|
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. |
It's fixed in 0.72.6 (used by expo sdk49)
You can close the issue. |
Any updates? Experiencing this in v0.73.4 |
Use Pressable instead of TouchableOpacity. |
Same in v0.73.6, change TouchableOpacity to Pressable, didn't work at all |
seeing same error in v0.73.8 for |
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
Hi There,
I am using TouchableOpacity inside the FlatLis. And the FlatList data has 500 objects. when the data appearing on the screen, it is showing a warning as below
function for gating data
const CallLogsAPI = async (employee_id) => {
try {
// setIsLoading(true)
let res = await axios.post(
${BASE_URL}/Temp/getCallLogs
, { employee_id }, { timeout: 3000 })let data = res.data.data
// console.log('apiLogData', data)
SetApiLogData(data)
setIsLoading(false)
}
return data to screen:
return (
<View style={{ height: '100%' }}>
{/* {
isLoading &&
}
<Icon name='sync-circle' size={70} color='#2196F3' onPress={() => { setIsLoading(true); GetDeviceLogs(employee_id) }} />
*/}
}
could you please suggest me a way how can i avoid this warning.
Thanks
Version
0.69.3
Output of
npx react-native info
System:
OS: Windows 10 10.0.19044
CPU: (4) x64 Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz
Memory: 510.30 MB / 7.89 GB
Binaries:
Node: 16.16.0 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 8.11.0 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
API Levels: 31, 32, 33
Build Tools: 30.0.3, 31.0.0, 33.0.0
System Images: android-31 | Google APIs Intel x86 Atom_64, android-31 | Google Play Intel x86 Atom_64
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-212.5712.43.2112.8609683
Visual Studio: 17.2.32630.192 (Visual Studio Community 2022)
Languages:
Java: 17.0.4
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.3 => 0.69.3
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
1
Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: