-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RNMobile] Try fixing split/merge issue on native mobile by dropping …
…selection update event when late (#29683) * Bump native event count and drop selection update event if late * Limit the event count bump and event dropping to iOS * Sync native mobile event counter to the JS side one This way, when the JS bumps the counter, the native side picks it up and increments from there. * More usage of event counter bumping instead of undefining * Introducing shouldDropEventFromAztec and using it in onChange too So to drop the Aztec onChange events too, if late. * Don't bump the local event counter on componentDidUpdate If the update was due to content change from the JS side of things, the counter would have already been bumped in shouldComponentUpdate (hopefully), so bumping it again in DidUpdate introduces a counter bump that gets out-of-sync with Aztec since (the bump inside DidUpdate doesn't cause a render and thus no new counter sent to Aztec). * Use window.console, to satisfy linter * Fix typo in comments Co-authored-by: Joel Dean <[email protected]> * Sync changelog instructions for native mobile * Changelog entry for the split/merge regression fix Co-authored-by: Joel Dean <[email protected]>
- Loading branch information
1 parent
b319dda
commit 028709c
Showing
4 changed files
with
79 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
<!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. --> | ||
|
||
## Unreleased | ||
<!-- | ||
For each user feature we should also add a importance categorization label to indicate the relevance of the change for end users of GB Mobile. The format is the following: | ||
[***] → Major new features, significant updates to core flows, or impactful fixes (e.g. a crash that impacts a lot of users) — things our users should be aware of. | ||
[**] → Changes our users will probably notice, but doesn’t impact core flows. Most fixes. | ||
[*] → Minor enhancements and fixes that address annoyances — things our users can miss. | ||
--> | ||
|
||
## Unreleased | ||
* [*] Block split/merge fix for a (never shipped) regression (Android only) [#29683] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters