InteractionManager crash when cancelling promise task before it completes #16321
Labels
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
JavaScript
Stale
There has been a lack of activity on this issue and it may be closed soon.
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
react-native 0.47.2
Steps to Reproduce
Expected Behavior
No error would be thrown. InteractionManager (TaskQueue) would ignore the completion of a cancelled task and start the next task.
Actual Behavior
Error was thrown from TaskQueue line 158:
iOS:
TaskQueue: Error resolving Promise in task undefined: undefined is not an object (evaluating '_this2._queueStack[stackIdx].popable = true')
Android:
TaskQueue: Error resolving Promise in task undefined: Attempted to assign to readonly property.
Reproducible Demo
https://snack.expo.io/HJivJZ33-
The text was updated successfully, but these errors were encountered: