Skip to content

Commit

Permalink
[Flight] Remove unnecessary aborted check in prerender#onError
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Dec 18, 2024
1 parent 7c1796d commit 1c252ea
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/next/src/server/app-render/app-render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2753,12 +2753,6 @@ async function prerenderToStream(
clientReferenceManifest.clientModules,
{
onError: (err: unknown) => {
// TODO we can remove this once https://github.com/facebook/react/pull/31715 lands
// because we won't have onError calls when halting the prerender
if (finalServerController.signal.aborted) {
return
}

return serverComponentsErrorHandler(err)
},
signal: finalServerController.signal,
Expand Down

0 comments on commit 1c252ea

Please sign in to comment.