From 70fb1363912a35fc59c1bf648b963c3a0b719b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Markb=C3=A5ge?= Date: Thu, 10 Oct 2024 14:52:33 -0400 Subject: [PATCH] Fix limit without owner stacks (#31179) Move out of gate. --- packages/react-server/src/ReactFlightServer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-server/src/ReactFlightServer.js b/packages/react-server/src/ReactFlightServer.js index 112070d718aa3..6adf619290e5e 100644 --- a/packages/react-server/src/ReactFlightServer.js +++ b/packages/react-server/src/ReactFlightServer.js @@ -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) { @@ -3475,7 +3477,6 @@ function renderConsoleValue( doNotLimit.add(debugStack[i]); } } - doNotLimit.add(element.props); return [ REACT_ELEMENT_TYPE, element.type,