-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ref(react-router): Deprecate ErrorBoundary exports #18208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,13 +3,16 @@ export * from '@sentry/browser'; | |
| export { init } from './sdk'; | ||
| export { reactRouterTracingIntegration } from './tracingIntegration'; | ||
|
|
||
| export { | ||
| captureReactException, | ||
| reactErrorHandler, | ||
| Profiler, | ||
| withProfiler, | ||
| useProfiler, | ||
| ErrorBoundary, | ||
| withErrorBoundary, | ||
| } from '@sentry/react'; | ||
| export { captureReactException, reactErrorHandler, Profiler, withProfiler, useProfiler } from '@sentry/react'; | ||
|
|
||
| /** | ||
| * @deprecated ErrorBoundary is deprecated, use react router's error boundary instead. | ||
| * See https://docs.sentry.io/platforms/javascript/guides/react-router/#report-errors-from-error-boundaries | ||
| */ | ||
| export { ErrorBoundary, withErrorBoundary } from '@sentry/react'; | ||
|
|
||
| /** | ||
| * @deprecated ErrorBoundaryProps and FallbackRender are deprecated, use react router's error boundary instead. | ||
| * See https://docs.sentry.io/platforms/javascript/guides/react-router/#report-errors-from-error-boundaries | ||
| */ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Deprecation Paradox: API Surface Expansion (Bugbot Rules)This change introduces new public API exports for
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They were exported before... |
||
| export type { ErrorBoundaryProps, FallbackRender } from '@sentry/react'; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks a bit more professional if we use the official name in the public exports (same as below)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will ammend