Skip to content

Commit 765805b

Browse files
authored
Fix type check for null (#25595)
1 parent 2ac77aa commit 765805b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-server/src/ReactFlightServer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ function attemptResolveElement(
287287
}
288288
if (__DEV__) {
289289
jsxPropsParents.set(props, type);
290-
if (typeof props.children === 'object') {
290+
if (typeof props.children === 'object' && props.children !== null) {
291291
jsxChildrenParents.set(props.children, type);
292292
}
293293
}

0 commit comments

Comments
 (0)