-
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
feat: retain multiple calls per event until consumed #6419
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are now retaining multiple events, and that can cause a delay on the execution, if a new event gets triggered while the events are being forwarded to javascript, that can cause race conditions and some events might be lost.
I think the code should create a copy of the retained event array and null the original one right away and then use the for on the copy array, so if new events happen during the for, the original array is null again and can get the new events.
Co-authored-by: jcesarmobile <[email protected]>
Adds support for retaining multiple calls per event on iOS and Android.
closes: #5967