Skip to content

Commit 598ff08

Browse files
Typos
Co-authored-by: Hendrik Liebau <[email protected]>
1 parent 8786155 commit 598ff08

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/react-server/src/ReactFlightServer.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2358,7 +2358,7 @@ function serializeDeferredObject(
23582358
if (deferredDebugObjects !== null) {
23592359
// This client supports a long lived connection. We can assign this object
23602360
// 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.
23622362
request.pendingChunks++;
23632363
const id = request.nextChunkId++;
23642364
deferredDebugObjects.existing.set(value, id);
@@ -4091,7 +4091,7 @@ function renderDebugModel(
40914091

40924092
if (counter.objectLimit <= 0 && !doNotLimit.has(value)) {
40934093
// 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.
40954095
return serializeDeferredObject(request, value);
40964096
}
40974097

@@ -4284,7 +4284,7 @@ function renderDebugModel(
42844284
// Large strings are counted towards the object limit.
42854285
if (counter.objectLimit <= 0) {
42864286
// 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.
42884288
return serializeDeferredObject(request, value);
42894289
}
42904290
counter.objectLimit--;
@@ -5323,7 +5323,7 @@ export function resolveDebugMessage(request: Request, message: string): void {
53235323
const deferredDebugObjects = request.deferredDebugObjects;
53245324
if (deferredDebugObjects === null) {
53255325
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.",
53275327
);
53285328
}
53295329
// This function lets the client ask for more data lazily through the debug channel.
@@ -5376,7 +5376,7 @@ export function closeDebugChannel(request: Request): void {
53765376
const deferredDebugObjects = request.deferredDebugObjects;
53775377
if (deferredDebugObjects === null) {
53785378
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.",
53805380
);
53815381
}
53825382
deferredDebugObjects.retained.forEach((value, id) => {

scripts/error-codes/codes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,5 +550,5 @@
550550
"562": "The render was aborted due to a fatal error.",
551551
"563": "This render completed successfully. All cacheSignals are now aborted to allow clean up of any unused resources.",
552552
"564": "Unknown command. The debugChannel was not wired up properly.",
553-
"565": "resolveDebugMessage/closeDebugChannel not be called for a Request that wasn't kept alive. This is a bug in React."
553+
"565": "resolveDebugMessage/closeDebugChannel should not be called for a Request that wasn't kept alive. This is a bug in React."
554554
}

0 commit comments

Comments
 (0)