Bridgeless idleCallbacks do not return correct handle #49684
Labels
Needs: Attention
Issues where the author has responded to feedback.
Needs: Repro
This issue could be improved with a clear list of steps to reproduce the issue.
Description
When using
requestIdleCallback
in bridgeless mode, the correct handle id is not returned. Instead an empty object is returned. As a result, we are unable to correctly callcancelIdleCallback
as there is no handle to cancel.When disabling new arch, the handles are correctly returned.
In the reproducer, the
Steps to reproduce
requestIdleCallback
cancelIdleCallback
React Native Version
0.78.0
Affected Platforms
Runtime - iOS
Output of
npx @react-native-community/cli info
Stacktrace or Logs
Reproducer
https://github.com/BenIrving/requestidlecallbackrepro
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: