Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix type check for null
  • Loading branch information
sebmarkbage committed Oct 31, 2022
commit 42a31c54c5d6c9d4a7d21ddcdc1f63aeaa555243
2 changes: 1 addition & 1 deletion packages/react-server/src/ReactFlightServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down