Comments (2)
After investigating the issue, I found out the culprit. The crash is related to footnotes, which it's logic is part of the updates made in the hook useEntityBlockEditor
. Let me share the trace of this logic to better explain the issue:
-
Hook
useEntityBlockEditor
is used in theProvider
component and incore/block
(synced pattern): -
In
useEntityBlockEditor
, the functiononChange
updates footnotes. This function is triggered when there's an update in the block, for instance, when an attribute is updated. -
However, it only processes footnotes when the
meta
property of the entity is defined. This is not the case for the majority of blocks, but it is forcore/block
. -
As part of the footnotes logic, the function
getFootnotesOrder
callsgetRichTextValuesCached
. -
At the same time, the function
getRichTextValuesCached
usesgetRichTextValues
. -
getRichTextValues
is a private API that is not exported in the native version:
Hence, the issue would be solved by simply exporting getRichTextValues
.
from gutenberg-mobile.
Following wordpress-mobile/WordPress-iOS#22776 (comment), seems the issue can also be reproduced in Cover block.
from gutenberg-mobile.
Related Issues (20)
- Excerpts shows the VideoPress URL for VideoPress v5
- Empty state when using source URL of VideoPress vide in v5 block
- VideoPress v5: Plays inline setting not saving for Atomic sites w/o VideoPress HOT 1
- Support HTML anchors HOT 3
- Cover block: Videos can't be played in private sites
- Add ability to transform video block to VideoPress
- VideoPress v5: Investigate cases where app markup differs to the web
- Long delay when saving a post HOT 3
- Improve appearance of the File Block
- Unsupported Block Editor: Editor doesn't load on some Atomic sites on Android HOT 2
- TypeError: Cannot read property 'label' of undefined HOT 2
- TypeError: Cannot read property 'trim' of undefined HOT 3
- TypeError: Cannot read property 'name' of null HOT 3
- TypeError: Cannot read property 'scrollToEnd' of null HOT 1
- TypeError: Cannot set property 'block' of undefined HOT 1
- 'RNTAztecView/RNTAztecView.h' file not found HOT 1
- Remove deprecated defaultProps from function components for React 18.3
- Add AI assistant
- Jetpack Paid Content Block
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gutenberg-mobile.