diff --git a/packages/next/src/server/app-render/app-render.tsx b/packages/next/src/server/app-render/app-render.tsx index 84606c6e177850..1a6510248aa149 100644 --- a/packages/next/src/server/app-render/app-render.tsx +++ b/packages/next/src/server/app-render/app-render.tsx @@ -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,