You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: race condition on attachedGestures in updateHandlers (#3425)
## Description
Our production apps are regularly crashing with the following
stacktracke:
```
Non-fatal Exception: io.invertase.firebase.crashlytics.JavaScriptError: Cannot read property 'handlers' of undefined
at .anonymous(address at node_modules/react-native-gesture-handler/src/handlers/gestures/GestureDetector/updateHandlers.ts:51:ghQueueMicrotask$argument_0)
at .anonymous(address at node_modules/react-native/Libraries/Core/Timers/immediateShim.js:46:global.queueMicrotask$argument_0)
```
This seems to be caused by a race condition on the number of gestures in
`preparedGesture.attachedGestures`. This PR fixes that race condition by
storing the value of `preparedGesture.attachedGestures` from when the
micro task was scheduled.
## Test plan
Run example apps
0 commit comments