Skip to content

Commit

Permalink
Also don't cut off type and key and owner
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Oct 13, 2024
1 parent 147374d commit db08d25
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/react-server/src/ReactFlightServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3465,7 +3465,18 @@ function renderConsoleValue(
if (element._owner != null) {
outlineComponentInfo(request, element._owner);
}
if (typeof element.type === 'object' && element.type !== null) {
// If the type is an object it can get cut off which shouldn't happen here.
doNotLimit.add(element.type);
}
if (typeof element.key === 'object' && element.key !== null) {
// This should never happen but just in case.
doNotLimit.add(element.key);
}
doNotLimit.add(element.props);
if (element._owner !== null) {
doNotLimit.add(element._owner);
}

if (enableOwnerStacks) {
let debugStack: null | ReactStackTrace = null;
Expand Down

0 comments on commit db08d25

Please sign in to comment.