Skip to content

Commit f7faa72

Browse files
committed
Comments
1 parent 5eff405 commit f7faa72

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/react-client/src/ReactFlightClient.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,8 @@ function initializeElement(response: Response, element: any): void {
831831
if (owner !== null) {
832832
initializeFakeStack(response, owner);
833833
}
834+
// TODO: We should be freezing the element but currently, we might write into
835+
// _debugInfo later. We could move it into _store which remains mutable.
834836
Object.freeze(element.props);
835837
}
836838

@@ -955,8 +957,6 @@ function createElement(
955957
}
956958
}
957959
if (__DEV__) {
958-
// TODO: We should be freezing the element but currently, we might write into
959-
// _debugInfo later. We could move it into _store which remains mutable.
960960
initializeElement(response, element);
961961
}
962962

packages/react-server/src/ReactFlightServer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4289,7 +4289,7 @@ function renderDebugModel(
42894289
}
42904290

42914291
if (counter.objectLimit <= 0 && !doNotLimit.has(value)) {
4292-
// We've reached our max number of objects to serializeDebug across the wire so we serializeDebug this
4292+
// We've reached our max number of objects to serialize across the wire so we serialize this
42934293
// as a marker so that the client can error or lazy load this when accessed by the console.
42944294
return serializeDeferredObject(request, value);
42954295
}
@@ -4482,7 +4482,7 @@ function renderDebugModel(
44824482
if (value.length >= 1024) {
44834483
// Large strings are counted towards the object limit.
44844484
if (counter.objectLimit <= 0) {
4485-
// We've reached our max number of objects to serializeDebug across the wire so we serializeDebug this
4485+
// We've reached our max number of objects to serialize across the wire so we serialize this
44864486
// as a marker so that the client can error or lazy load this when accessed by the console.
44874487
return serializeDeferredObject(request, value);
44884488
}

0 commit comments

Comments
 (0)