Skip to content

Block Editor crash (React Error #185) when clicking "About" in List View before blocks fully loaded #37

@HMF-IT

Description

@HMF-IT

Description

The Gutenberg editor crashes with a React error when clicking on the "About" panel in the List View sidebar immediately after opening a post. The crash only occurs when clicking before the block hierarchy (e.g., "Container" children) has finished loading.

Steps to Reproduce

  1. Open any post/page containing a Spectra Container block
  2. Open the List View sidebar (left panel)
  3. Immediately click on "About" before the Container's children are visible
  4. Editor crashes with error message: "Im Editor ist ein unerwarteter Fehler aufgetreten"

Expected Behavior

Clicking "About" should work at any time without crashing.

Actual Behavior

Editor crashes with React Error #185 (Maximum update depth exceeded).

Workaround

Wait 1-2 seconds until the block hierarchy is fully loaded (Container children become visible), then clicking "About" works fine.

Error Log

Error: Minified React error #185; visit https://reactjs.org/docs/error-decoder.html?invariant=185
at al (react-dom.min.js?ver=18.3.1.1:10:82327)
at qt (react-dom.min.js?ver=18.3.1.1:10:50992)
at u (compose.min.js?ver=7a9b375d8c19cf9d3d9b:9:30266)
at compose.min.js?ver=7a9b375d8c19cf9d3d9b:9:30418
at Ur (react-dom.min.js?ver=18.3.1.1:10:73201)

Environment

  • Spectra Version: 3.0.0-beta.1
  • WordPress Version: 6.9
  • Browser: Chrome Version: 143.0.7499.41

Analysis

This appears to be a race condition where a React component attempts to update state on an unmounted or not-yet-mounted component during List View initialization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions