We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1670fd commit ff39205Copy full SHA for ff39205
examples/react/start-streaming-data-from-server-functions/src/routes/index.tsx
@@ -55,9 +55,7 @@ function sleep(ms: number) {
55
This server function returns a `ReadableStream`
56
that streams `TextPart` chunks to the client.
57
*/
58
-const streamingResponseFn = createServerFn({
59
- method: 'GET',
60
-}).handler(async () => {
+const streamingResponseFn = createServerFn().handler(async () => {
61
const messages = generateMessages()
62
// This `ReadableStream` is typed, so each
63
// will be of type `TextPart`.
examples/react/start-streaming-data-from-server-functions/src/utils/index.ts
0 commit comments