What is the behavior of InteractionManager on web? #1943
Unanswered
g33kracc00n
asked this question in
Q&A
Replies: 1 comment
-
@MohamedDarwiche-DaherSoftware On web, it's using requestIdleCallback. You can verify it here. So, if the browser supports requestIdleCallback, it should run when the thread is idle. If browser doesn't support, it uses setTimeout as a fallback which will also wait for synchronous tasks to finish. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, 👨🏻💻
do we have a specified or documented behavior of InteractionManager on web ?
and what about runAfterInteractions ? does it really wait for interactions to finish before executing the passed code (on web)?
This note is on React Native documentation:
Note: InteractionManager.runAfterInteractions() is not working properly on web. It triggers immediately without waiting until the interaction is finished.
https://reactnative.dev/docs/interactionmanager#runafterinteractions
Beta Was this translation helpful? Give feedback.
All reactions