Skip to content

[ReactDebugTools] wrap uncaught error from rendering user's component #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

mondaychen
Copy link
Owner

@mondaychen mondaychen commented Mar 28, 2022

Summary

This PR adds ability to detect error thrown from user's code, and wrap it inside an error with custom name, so Dev Tools is able to caught it and show custom error view.

This is to unblock #2

How did you test this change?

I'm testing it with a user's code from facebook#24096

@mondaychen mondaychen force-pushed the custom_error_debug_tools_1 branch from a11680b to 60cb32b Compare March 28, 2022 16:10
@mondaychen mondaychen force-pushed the custom_error_debug_tools_2 branch 2 times, most recently from 5146d90 to dad75d3 Compare March 28, 2022 19:42
@mondaychen mondaychen force-pushed the custom_error_debug_tools_2 branch from dad75d3 to a1bec07 Compare March 29, 2022 17:25
@mondaychen mondaychen closed this Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant