mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
15b8ac8db2
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45471 Changelog: [internal] This is a React Native specific modification of the Long Tasks API that refines the logic to detect long tasks considering voluntary yielding checks. In RN, as opposed to Web, we can have a very long task executing in the JS thread without causing any issues to the responsiveness of the app, as long as the task checks whether it should yield in short intervals. In this case, if the app always checks whether it should yield at least once every 50ms, the task will not be considered "long". Check the new unit tests to see this behavior in practice. Reviewed By: sammy-SC Differential Revision: D55647992 fbshipit-source-id: 82ab41173d4d9deee65b8ade2268c40d7f58c6e2