Skip to content

Commit

Permalink
reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Feb 28, 2022
1 parent be74ccd commit ce40f8c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/next/server/render.tsx
Expand Up @@ -1842,8 +1842,8 @@ function createPrefixStream(
transform(chunk, controller) {
if (!prefixFlushed && prefix) {
prefixFlushed = true
const prefixedChunk = prefix + decodeText(chunk)
controller.enqueue(encodeText(prefixedChunk))
controller.enqueue(chunk)
controller.enqueue(encodeText(prefix))
} else {
controller.enqueue(chunk)
}
Expand Down Expand Up @@ -1973,7 +1973,6 @@ async function streamToString(
const { done, value } = await reader.read()

if (done) {
console.log('bufferedString', bufferedString)
return bufferedString
}

Expand Down

0 comments on commit ce40f8c

Please sign in to comment.