Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sentry.ErrorBoundary showDialog is shown multiple times #5629

Unanswered
mjooms asked this question in Q&A
Discussion options

I was testing how the feedback dialog for ErrorBoundary works in a nextjs app. I used the showDialog prop. On a list of 14 items, I was throwing an error for each item (simulating by calling a non existent function).

To my surprise ErrorBoundary showed the feedback dialog 14 times... I had to click close 14 times in the feedback dialog to get rid of them all.

Is this the expected behavior?

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

Since we are just calling componentDidCatch here, it seems that componentDidCatch is being called 14 times then.

showReportDialog({ ...dialogOptions, eventId });

Perhaps there should be a way for us to dedupe this - transferring as an issue so we can backlog and investigate further, but PRs welcome!

You must be logged in to vote
1 reply
Comment options

Issue here: #5646

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /