Skip to content

fix(nextjs): Don't report React postpone errors #12194

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

Merged
merged 4 commits into from
May 24, 2024

Conversation

lforst
Copy link
Contributor

@lforst lforst commented May 23, 2024

Fixes #12061
Fixes #11969

React/Next.js throw errors for control flow. In this case, React throws a "postpone" error, to signify that a route cannot be pre-rendered. We obviously do not want to report these errors so we drop the events.

@lforst lforst marked this pull request as ready for review May 24, 2024 09:20
@lforst lforst requested review from mydea, Lms24 and AbhiPrasad May 24, 2024 09:20
@lforst lforst merged commit 41951ba into develop May 24, 2024
75 checks passed
@lforst lforst deleted the lforst-dont-catch-react-internals branch May 24, 2024 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PPR - Static bail out error caught when using partial prerending nextjs [Next.js]: Sentry should not catch trackDynamicDataAccessed
2 participants