Skip to content

Commit 850327c

Browse files
committed
Apply facebook/react#26228 to v18.3.1
1 parent 9a2e6dd commit 850327c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cjs/react-dom-server.node.development.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function writeStringChunk(destination, stringChunk) {
126126
writtenBytes += written;
127127

128128
if (read < stringChunk.length) {
129-
writeToDestination(destination, currentView);
129+
writeToDestination(destination, currentView.subarray(0, writtenBytes));
130130
currentView = new Uint8Array(VIEW_SIZE);
131131
writtenBytes = textEncoder.encodeInto(stringChunk.slice(read), currentView).written;
132132
}

cjs/react-dom-server.node.production.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)