-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[bug][android][newarch] setTimeout no longer updates once app is minimized #2392
Comments
ive pinned down to clearFrameCallback in JavaTimerManager.py. seems like
needs to be always called, instaed of only when there is no active headlessTask. since this function is called onHostPause, which is minimizing the app, the behavior is expecetd - tho i dont have a clue what any of this do |
proposed patch? lovegaoshi/azusa-player-mobile@57025b9 |
This comment was marked as off-topic.
This comment was marked as off-topic.
tracked by facebook/react-native#47436 |
tracked by facebook/react-native#47496 |
tracked by reactwg/react-native-releases#617 |
Describe the Bug
setTimeout no longer updates once app is minimized. I've confirmed this is directly related to RNTP and new arch interaction, as I tested on my newArchExample repo with RN 0.75.3 + the 2 headlessJs patches, and RNTP + the 2 new arch patches, and can reproduce the issue.
In the repo provided, look at the counter at the very top, it increases by 1 every second. by minimizing and re-opening the app, it wont count anymore. If headlessJs is not involved I believe the counter works.
This is important bc useProgress uses setTimeout to pool progress updates.
Steps To Reproduce
ook at the counter at the very top, it increases by 1 every second. by minimizing and re-opening the app, it wont count anymore
Code To Reproduce
https://github.com/lovegaoshi/RNTPExampleNewArch/tree/eb1707c04b85f1095355f998d6de46ead72a5d72
Replicable on Example App?
yes
Environment Info:
specifically on android
How I can Help
n/A
The text was updated successfully, but these errors were encountered: