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): expose FallbackRender as top-level type (#5307)
This PR exposes the `FallbackRender` type at the root level of `@sentry/react` package. Currently, to use the type and so get type info on the passed error object., a project I work on does:
```ts
import { FallbackRender } from '@sentry/react/types/errorboundary.d';
// v6: import { FallbackRender } from '@sentry/react/dist/errorboundary';
export const ErrorOverlay: FallbackRender = (error) => { /* component code */ });
```
which feels wrong, as reaching into the package internals is clearly asking for unannounced breaking changes (as seen going from v6->v7).
Signed-off-by: Matthew Peveler <[email protected]>
Co-authored-by: Abhijeet Prasad <[email protected]>
0 commit comments