-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[RNMobile] Revert: RichText: Return early when content has changed in onSelectionChangeFromAztec #42089
[RNMobile] Revert: RichText: Return early when content has changed in onSelectionChangeFromAztec #42089
Conversation
Size Change: 0 B Total Size: 1.25 MB ℹ️ View Unchanged
|
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.
LGTM. I was unable to replicate the bug with this PR and the e2e tests appears to be passing as well. Thank you! 🚀
@dcalhoun @SiobhyB - based on the discussion in PR #42046, it sounds like the bug only occurs on iOS. I haven't been able to reproduce it on Android yet. If it's true that only iOS is affected, do you think we should consider keeping the change for Android? The performance issues on lower-end Android devices can be significant, and it would be nice to improve the performance on those devices soon (assuming no new bugs are introduced, of course). I am concerned about other hidden bugs, and I think it's reasonable to revert if you're not comfortable keeping the change on Android without further investigation. |
@kbrown9, thank you for bringing this up for discussion! I agree that it'd be great if at least Android users were able to benefit from the significant performance improvements your PR brought. I'm also a little hesitant for the reasons you describe. It feels like the code around the RichText component is already tricky to debug and it might be preferable to spend a bit more time understanding the code before deciding on a workaround. My gut is telling me that it may be best to revert for now, to help us get on top of the e2e errors, and then possibly have a new PR for either debugging the core issue or introducing an Android-only workaround. I could be swayed, though. @dcalhoun, @fluiddot, pinging to get your opinions here, too. Do you have a preference for how to proceed? |
Agreed, the
Sounds good to me continuing with this PR, at least for addressing the E2E tests failures, and then focus on the Android-only workaround 👍 . |
Reverts #41682
gutenberg-mobile
: [RNMobile] Revert: RichText: Return early when content has changed in onSelectionChangeFromAztec wordpress-mobile/gutenberg-mobile#4999What?
It was recently found that the changes in #41682 lead to a bug where a block's last character can either be stripped or pushed to a new paragraph.
Why?
@dcalhoun's exploration of this issue at #42046 (comment) revealed that this will be a complicated issue to fix, so we'll be reverting the original changes for now.
How?
The changes from the original PR have been reverted. Given this is a revert for an enhancement, no regressions are foreseen.