Skip to content
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

feat(react): Expose eventId on React ErrorBoundary #2704

Merged
merged 1 commit into from Jun 29, 2020

Conversation

Tirzono
Copy link
Contributor

@Tirzono Tirzono commented Jun 29, 2020

Exposes eventId on the ErrorBoundary component in React. This allows using it in the fallback component, as an alternative to the dialog (users can report errors with a certain event ID allowing easier look up of the error).

setError(false);
if (props.onReset) {
props.onReset(err, stack);
props.onReset(...args);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure we pass all the arguments, instead of having to edit this all the time when onReset changes.

Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM, thank you for your contribution. Could you add a CHANGELOG entry? Will merge in after that.

@Tirzono
Copy link
Contributor Author

Tirzono commented Jun 29, 2020

Thank you for your quick review. My bad, I added a changelog entry now.

Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Will merge after CI passes. Thank you!

@AbhiPrasad AbhiPrasad merged commit 99745d6 into getsentry:master Jun 29, 2020
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.

None yet

2 participants