Skip to content

Commit

Permalink
Also don't cut off type and key
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Oct 13, 2024
1 parent 147374d commit 4aeec0c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/react-server/src/ReactFlightServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3465,6 +3465,14 @@ 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 (enableOwnerStacks) {
Expand Down

0 comments on commit 4aeec0c

Please sign in to comment.