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(react): type error as unknown in ErrorBoundary (getsentry#11819)
Fixesgetsentry#11728
As reporting in the above issue, it is not typesafe to type the error
thrown by react components as `Error`, it can actually be any JS
object/primitive that was thrown. This means we have to type everything
as `unknown`.
This change only will happen for `8.x` because it's a breaking change.
Related:
- https://react.dev/reference/react/Component#componentdidcatch
- DefinitelyTyped/DefinitelyTyped#69434
---------
Co-authored-by: Francesco Novy <francesco.novy@sentry.io>
0 commit comments