Skip to content

Fix event ordering when combining coalescable and non-coalescable events - #24693

Closed
janicduplessis wants to merge 1 commit into
react:masterfrom
janicduplessis:fix-event-ordering
Closed

Fix event ordering when combining coalescable and non-coalescable events#24693
janicduplessis wants to merge 1 commit into
react:masterfrom
janicduplessis:fix-event-ordering

Conversation

@janicduplessis

Copy link
Copy Markdown
Contributor

Summary

Fixes an issue introduced in #15894 that can cause events to be dispatched out of order.

Also reverted viewTag moved to optional property as it didn't actually work and makes code more complex.

Changelog

[iOS] [Fixed] - Fix event ordering when combining coalescable and non-coalescable events

Test Plan

Tested events still work, need to validate it fixes the crash seen @fb

@facebook-github-botfacebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Contributor A React Native contributor. labels May 2, 2019
@janicduplessis

Copy link
Copy Markdown
ContributorAuthor

@shergin@sahrens Can you test if this fixes the issue you reported?

@shergin

Copy link
Copy Markdown
Contributor

AFAIK, this is hard to repro issue which happens only in prod at scale (one of our top crashes thought!).

Looks good and reasonable to me! Thank you so much Janic! ❤️

So, let's land and see what happened. 🤞

@facebook-github-botfacebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shergin is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @janicduplessis in 4e215b2.

When will my fix make it into a release? | Upcoming Releases

@react-native-botreact-native-bot added the Merged This PR has been merged. label May 9, 2019
@janicduplessis
janicduplessis deleted the fix-event-ordering branch May 9, 2019 17:44
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BugCLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.ContributorA React Native contributor.MergedThis PR has been merged.Platform: iOSiOS applications.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@janicduplessis@shergin@react-native-bot@facebook-github-bot@hramos