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 41af48d commit bc120b4Copy full SHA for bc120b4
examples/react/start-streaming-data-from-server-functions/src/routes/index.tsx
@@ -128,8 +128,8 @@ function RouteComponent() {
128
129
const getResponseFromTheAsyncGenerator = useCallback(async () => {
130
setAsyncGeneratorFuncMessages('')
131
- for await (const m of await streamingWithAnAsyncGeneratorFn()) {
132
- const chunk = m?.choices[0].delta.content
+ for await (const msg of await streamingWithAnAsyncGeneratorFn()) {
+ const chunk = msg?.choices[0].delta.content
133
if (chunk) {
134
setAsyncGeneratorFuncMessages((prev) => prev + chunk)
135
}
0 commit comments