@@ -2358,7 +2358,7 @@ function serializeDeferredObject(
2358
2358
if ( deferredDebugObjects !== null ) {
2359
2359
// This client supports a long lived connection. We can assign this object
2360
2360
// an ID to be lazy loaded later.
2361
- // This keeps the connection alive until we ask for it or retain it.
2361
+ // This keeps the connection alive until we ask for it or release it.
2362
2362
request. pendingChunks ++ ;
2363
2363
const id = request . nextChunkId ++ ;
2364
2364
deferredDebugObjects . existing . set ( value , id ) ;
@@ -4091,7 +4091,7 @@ function renderDebugModel(
4091
4091
4092
4092
if ( counter . objectLimit <= 0 && ! doNotLimit . has ( value ) ) {
4093
4093
// We've reached our max number of objects to serialize across the wire so we serialize this
4094
- // as a marker so that the client can error or lazy load thiswhen accessed by the console.
4094
+ // as a marker so that the client can error or lazy load this when accessed by the console.
4095
4095
return serializeDeferredObject ( request , value ) ;
4096
4096
}
4097
4097
@@ -4284,7 +4284,7 @@ function renderDebugModel(
4284
4284
// Large strings are counted towards the object limit.
4285
4285
if ( counter . objectLimit <= 0 ) {
4286
4286
// We've reached our max number of objects to serialize across the wire so we serialize this
4287
- // as a marker so that the client can error or lazy load thiswhen accessed by the console.
4287
+ // as a marker so that the client can error or lazy load this when accessed by the console.
4288
4288
return serializeDeferredObject ( request , value ) ;
4289
4289
}
4290
4290
counter . objectLimit -- ;
@@ -5323,7 +5323,7 @@ export function resolveDebugMessage(request: Request, message: string): void {
5323
5323
const deferredDebugObjects = request . deferredDebugObjects ;
5324
5324
if ( deferredDebugObjects === null ) {
5325
5325
throw new Error (
5326
- "resolveDebugMessage/closeDebugChannel not be called for a Request that wasn't kept alive. This is a bug in React." ,
5326
+ "resolveDebugMessage/closeDebugChannel should not be called for a Request that wasn't kept alive. This is a bug in React." ,
5327
5327
) ;
5328
5328
}
5329
5329
// This function lets the client ask for more data lazily through the debug channel.
@@ -5376,7 +5376,7 @@ export function closeDebugChannel(request: Request): void {
5376
5376
const deferredDebugObjects = request . deferredDebugObjects ;
5377
5377
if ( deferredDebugObjects === null ) {
5378
5378
throw new Error (
5379
- "resolveDebugMessage/closeDebugChannel not be called for a Request that wasn't kept alive. This is a bug in React." ,
5379
+ "resolveDebugMessage/closeDebugChannel should not be called for a Request that wasn't kept alive. This is a bug in React." ,
5380
5380
) ;
5381
5381
}
5382
5382
deferredDebugObjects . retained . forEach ( ( value , id ) => {
0 commit comments