From 42100a3448d96505852385752650fa2eb3d97076 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Thu, 7 Apr 2022 20:27:13 +0200 Subject: [PATCH] renderToReadableStream: Ensure same var name is used in `onError` (#4562) --- content/docs/reference-react-dom-server.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/reference-react-dom-server.md b/content/docs/reference-react-dom-server.md index 90f9489f..21a47eaf 100644 --- a/content/docs/reference-react-dom-server.md +++ b/content/docs/reference-react-dom-server.md @@ -109,9 +109,9 @@ try { , { signal: controller.signal, - onError(e) { + onError(error) { didError = true; - console.error(err); + console.error(error); } } );