Fix type check for null (#25595)
Sebastian Markbåge committed
Oct 31, 2022 at 17:29 UTC
765805bf88f7e4ac8db7b0a587bd82c7ac404220
1 file changed
+1
-1
packages/react-server/src/ReactFlightServer.js
+1
-1
@@ -287,7 +287,7 @@ function attemptResolveElement(
287
}
288
if (__DEV__) {
289
jsxPropsParents.set(props, type);
290
- if (typeof props.children === 'object') {
290
+ if (typeof props.children === 'object' && props.children !== null) {
291
jsxChildrenParents.set(props.children, type);
292
}
293
}