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 00b9a93 commit d86d1ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/next/server/render.tsx
Expand Up @@ -1842,7 +1842,7 @@ function createPrefixStream(
transform(chunk, controller) {
if (!prefixFlushed && prefix) {
prefixFlushed = true
const prefixedChunk = prefix + decodeText(chunk)
const prefixedChunk = decodeText(chunk) + prefix
controller.enqueue(encodeText(prefixedChunk))
} 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 d86d1ff

Please sign in to comment.