Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/start-server-core/src/server-functions-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,11 @@ export const handleServerAction = async ({
}

// not done yet, we need to stream
const encoder = new TextEncoder()
const stream = new ReadableStream({
start(controller) {
callbacks.onParse = (value) =>
controller.enqueue(JSON.stringify(value) + '\n')
controller.enqueue(encoder.encode(JSON.stringify(value) + "\n"))
callbacks.onDone = () => {
try {
controller.close()
Expand Down
Loading