From 42a31c54c5d6c9d4a7d21ddcdc1f63aeaa555243 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Mon, 31 Oct 2022 17:09:00 -0400 Subject: [PATCH] Fix type check for null --- packages/react-server/src/ReactFlightServer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-server/src/ReactFlightServer.js b/packages/react-server/src/ReactFlightServer.js index 575a19939f88f..3a0876a56f5ec 100644 --- a/packages/react-server/src/ReactFlightServer.js +++ b/packages/react-server/src/ReactFlightServer.js @@ -287,7 +287,7 @@ function attemptResolveElement( } if (__DEV__) { jsxPropsParents.set(props, type); - if (typeof props.children === 'object') { + if (typeof props.children === 'object' && props.children !== null) { jsxChildrenParents.set(props.children, type); } }