Skip to content

componentDidCatch: document & decompose info parameter #10461

Closed
@brandonbloom

Description

@brandonbloom

Some quick googling didn't show any explanation of the info parameter for componentDidCatch(error, info). The only key in that object that I've seen so far is componentStack, which is useful, but is already composed. If I want to do some custom rendering of that information, I have to parse it.

I'd love to see info.componentStack become a more general info.text string and then have componentStack be broken down to an array of frames. Something like [{component, createdBy}].

Metadata

Metadata

Assignees

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