Skip to content

Inspecting Suspense boundaries created by preact-iso throws error due to missing component state #502

@rschristian

Description

@rschristian

(Writing this largely for future Ryan as I don't have time to look into it just yet)

Running into the following when trying to use the extension (in both FF & Chrome) on the Preact site, upon inspecting suspense boundaries or their children:

Uncaught TypeError: right-hand side of 'in' should be an object, got undefined

if ("_suspended" in c.state) {

It looks like <ErrorBoundary> & <Router> from preact-iso are the culprits; the former wraps just about everything, but when removed, reduces the error to only when inspecting children of the <Router>'s suspense boundary.

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