-
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] Fix issue in synced patterns related to missing getRichTextValues
private API
#59632
[RNMobile] Fix issue in synced patterns related to missing getRichTextValues
private API
#59632
Conversation
This module is used in the footnotes logic, which is triggered on changes in the content of a synced pattern.
Size Change: +57 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
@@ -42,6 +44,7 @@ const getMockedReusableBlock = ( id ) => ( { | |||
id, | |||
title: { raw: `Reusable block - ${ id }` }, | |||
type: 'wp_block', | |||
meta: { footnotes: '' }, |
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.
As far as I checked, the meta
property is always included in the content response of synced patterns.
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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've tested this on both iOS and Android and the crash is no longer happening. Thanks for quickly addressing this! 🚀
…xtValues` private API (#59632) * Export `getRichTextValues` private API This module is used in the footnotes logic, which is triggered on changes in the content of a synced pattern. * Add integration test to cover issue's case
* Release script: Update react-native-editor version to 1.114.0 * Release script: Update CHANGELOG for version 1.114.0 * Release script: Update podfile * fix: Restore Xcode 15 patch See: #59461 * Release script: Update react-native-editor version to 1.114.1 * Release script: Update CHANGELOG for version 1.114.1 * Release script: Update podfile * [RNMobile] Fix issue in synced patterns related to missing `getRichTextValues` private API (#59632) * Export `getRichTextValues` private API This module is used in the footnotes logic, which is triggered on changes in the content of a synced pattern. * Add integration test to cover issue's case --------- Co-authored-by: Siobhan <[email protected]>
* Release script: Update react-native-editor version to 1.114.0 * Release script: Update CHANGELOG for version 1.114.0 * Release script: Update podfile * fix: Restore Xcode 15 patch See: WordPress#59461 * Release script: Update react-native-editor version to 1.114.1 * Release script: Update CHANGELOG for version 1.114.1 * Release script: Update podfile * [RNMobile] Fix issue in synced patterns related to missing `getRichTextValues` private API (WordPress#59632) * Export `getRichTextValues` private API This module is used in the footnotes logic, which is triggered on changes in the content of a synced pattern. * Add integration test to cover issue's case --------- Co-authored-by: Siobhan <[email protected]>
What?
Fixes an issue in Synced patterns related to updates in the content. The solution applied is based on the investigations shared in this comment.
Why?
It addresses an issue that makes the editor crash.
Fixes wordpress-mobile/gutenberg-mobile#6703.
Fixes wordpress-mobile/WordPress-iOS#22776.
Fixes wordpress-mobile/WordPress-Android#20369.
How?
Export
getRichTextValues
private API in the native version.Testing Instructions
Follow the reproduction steps outlined in wordpress-mobile/gutenberg-mobile#6703. The expectation is that the editor doesn't crash when inserting/rendering the synced pattern.
Testing Instructions for Keyboard
N/A
Screenshots or screencast
N/A