Skip to content

Commit

Permalink
Fix limit without owner stacks
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Oct 10, 2024
1 parent fbfe37e commit 491c497
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-server/src/ReactFlightServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3465,6 +3465,8 @@ function renderConsoleValue(
if (element._owner != null) {
outlineComponentInfo(request, element._owner);
}
doNotLimit.add(element.props);

if (enableOwnerStacks) {
let debugStack: null | ReactStackTrace = null;
if (element._debugStack != null) {
Expand All @@ -3475,7 +3477,6 @@ function renderConsoleValue(
doNotLimit.add(debugStack[i]);
}
}
doNotLimit.add(element.props);
return [
REACT_ELEMENT_TYPE,
element.type,
Expand Down

0 comments on commit 491c497

Please sign in to comment.