Skip to content

Commit ff39205

Browse files
committed
Clean up the example
1 parent b1670fd commit ff39205

File tree

2 files changed

+1
-31
lines changed
  • examples/react/start-streaming-data-from-server-functions/src

2 files changed

+1
-31
lines changed

examples/react/start-streaming-data-from-server-functions/src/routes/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ function sleep(ms: number) {
5555
This server function returns a `ReadableStream`
5656
that streams `TextPart` chunks to the client.
5757
*/
58-
const streamingResponseFn = createServerFn({
59-
method: 'GET',
60-
}).handler(async () => {
58+
const streamingResponseFn = createServerFn().handler(async () => {
6159
const messages = generateMessages()
6260
// This `ReadableStream` is typed, so each
6361
// will be of type `TextPart`.

examples/react/start-streaming-data-from-server-functions/src/utils/index.ts

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)