Skip to content

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

Merged
lforst merged 4 commits intodevelopfrom
lforst-dont-catch-react-internals
May 24, 2024
Merged

fix(nextjs): Don't report React postpone errors#12194
lforst merged 4 commits intodevelopfrom
lforst-dont-catch-react-internals

Conversation

@lforst
Copy link
Copy Markdown
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 AbhiPrasad, Lms24 and mydea May 24, 2024 09:20
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