Giter VIP home page Giter VIP logo

Comments (2)

fluiddot avatar fluiddot commented on August 15, 2024 1

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:

  1. Hook useEntityBlockEditor is used in the Provider component and in core/block (synced pattern):

  2. In useEntityBlockEditor, the function onChange updates footnotes. This function is triggered when there's an update in the block, for instance, when an attribute is updated.

  3. 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 for core/block.

  4. As part of the footnotes logic, the function getFootnotesOrder calls getRichTextValuesCached.

  5. At the same time, the function getRichTextValuesCached uses getRichTextValues.

  6. 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.

fluiddot avatar fluiddot commented on August 15, 2024

Following wordpress-mobile/WordPress-iOS#22776 (comment), seems the issue can also be reproduced in Cover block.

from gutenberg-mobile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.