What is MECHANISM in the event dashboard?

I am integrating Sentry in a React app, and I created an ErrorBoundary that catches any errors and sends them to Sentry. I am testing it by throwing some errors in the app and the question is, every time I catch one error, I see two events for it in the Sentry Dashboard. The only difference between them is the MECHANISM values. One has Mechanism ‘instrument’ and one ‘generic’. So what is the difference between these two and why are both being sent?

Hello! Did you ever figure this out? I am experiencing the exact same problem. I believe the global error handler that Sentry sets up is also sending the error but I’m not sure why (or how to confirm that).

Ah, it’s due an effect from being in development mode, so in production, it only actually gets reported once. See How does Error Boundary treat the thrown JS error? · Issue #12897 · facebook/react · GitHub