Skip to content

Commit 76ed2d2

Browse files
committed
[Flight] Remove unnecessary aborted check in prerender#onError
1 parent dfee85b commit 76ed2d2

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/next/src/server/app-render/app-render.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2753,12 +2753,6 @@ async function prerenderToStream(
27532753
clientReferenceManifest.clientModules,
27542754
{
27552755
onError: (err: unknown) => {
2756-
// TODO we can remove this once https://github.com/facebook/react/pull/31715 lands
2757-
// because we won't have onError calls when halting the prerender
2758-
if (finalServerController.signal.aborted) {
2759-
return
2760-
}
2761-
27622756
return serverComponentsErrorHandler(err)
27632757
},
27642758
signal: finalServerController.signal,

0 commit comments

Comments
 (0)