-
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
Try fixing Heading block validation errors on native #16195
Conversation
What kind of error do you see in React Native? There is no such attribute like |
@gziolo The error is mentioned in the PR description.
|
The problem we're having in RN is those |
Yes, everything makes sense in what you said. In general, the block you shared gets migrated to the latest version when you use it in the web context, but the error message is confusing. It gives a false impression that something went wrong. In fact, I would be in favor of using I think we can update handling of the following error as well: gutenberg/packages/blocks/src/api/validation.js Lines 641 to 647 in 00c82b4
In both cases, if there is any deprecated version which matches the content saved, we should never print an error to the console. |
Yes, this is automated as it's developer's role to provide migration logic which ensures there is no content loss. The assumption is that the developer knows what to do :) |
I have PR started which will be less dramatic when the block is updated based on the deprecation logic: It needs some further refinements but overall it shows the direction. |
Can we consider this PR as resolved now that #16862 was merged? It should warn now less frequently and in more appropriate cases. There still might be some duplication of messages for nested blocks. I plan to tackle it later. |
Description
This is a WIP. I'm trying to fix the block validation errors we're seeing on Gutenberg RN. Also experimenting with (auto?-)migration
How has this been tested?
TBD
Types of changes
React Native
Checklist: