-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Support React 19 #11798
Comments
@rickhanlonii The API we're looking to implement for Sentry error monitoring is: import { reactErrorHandler } from '@sentry/react';
import { hydrateRoot } from "react-dom/client";
ReactDOM.hydrateRoot(
document.getElementById("root") as HTMLElement,
<React.StrictMode>
<App />
</React.StrictMode>,
{
onUncaughtError: Sentry.reactErrorHandler(),
onCaughtError: Sentry.reactErrorHandler((error, errorInfo) => {
// optional callback if users want more/custom config in addition?
}),
}
); The only thing here is that if you set a In this case there is no way for us to replicate the I guess we can tell users to only set this for production, but Sentry can also be used in development environments via Spotlight (Sentry for Development). Is there a way we can get access to the original |
https://react.dev/blog/2024/04/25/react-19
Big thing for us is https://react.dev/reference/react-dom/client/createRoot#parameters
Key thing for us is that we can stop recommending
Sentry.ErrorBoundary
, and instead tell people to use the hooks in react directly!Tasks
Sentry.reactErrorHandler
#12147Sentry.reactErrorHandler
sentry-docs#10178The text was updated successfully, but these errors were encountered: