You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(browser): Document unregisterOriginalCallbacks option in browserApiErrors integration page (#13859)
Documents a new option added via
getsentry/sentry-javascript#16412. Also added a
troubleshooting section as adding this option was the result of
investigating a user-reported SDK issue
(getsentry/sentry-javascript#16398)
Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io>
In very rare cases, the SDK can cause callbacks added via `addEventListener` to an event target (such as a button) to be invoked twice.
397
+
This is usually a sign of the SDK being intialized too late in the lifecycle of the page. If you can, try initializing the SDK earlier in your application.
398
+
399
+
If this is not possible or doesn't apply to your use case, set the `unregisterOriginalCallbacks` option in the [`browserApiErrors` integration](../configuration/integrations/browserapierrors) to `true`.
400
+
401
+
</Expandable>
402
+
</PlatformCategorySection>
403
+
392
404
<Expandable permalink title="Build errors with vite">
393
405
394
406
If you're using the [Vite Bundler](https://vitejs.dev/) and a Sentry NPM package, and you see the following error:
0 commit comments