Skip to content

Collapsing stack frames in error overlay triggers infinite loop #10179

@lukaw3d

Description

@lukaw3d

🐛 bug report

Collapsing stack frames in error overlay triggers infinite loop of closing+opening

Image

It only happens when you click the bottom button to collapse

<button onClick={toggleCollapsed} style={collapsibleExpandedStyle}>

I found this explanation of the reason:
https://phelipetls.github.io/posts/surprising-react-bug/#toggle-event

🎛 Configuration (.babelrc, package.json, cli command)

{
  "your": { "config": "here" }
}

🤔 Expected Behavior

This is probably a low priority bug, and maybe does not have an elegant fix.

😯 Current Behavior

💁 Possible Solution

🔦 Context

💻 Code Sample

🌍 Your Environment

Software Version(s)
Parcel >=v2.14.0
Node
npm/Yarn
Operating System

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions