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 ea4dccd commit eb4e81fCopy full SHA for eb4e81f
packages/chat-ui/src/chat/chat-section.tsx
@@ -20,7 +20,10 @@ export default function ChatSection(props: ChatSectionProps) {
20
const [input, setInput] = useState('')
21
const [requestData, setRequestData] = useState<any>()
22
23
- const isLoading = handler.status === 'streaming'
+ // show loading immediately after the user submits the request
24
+ // then keep loading util streaming is finished
25
+ const isLoading =
26
+ handler.status === 'submitted' || handler.status === 'streaming'
27
28
const children = props.children ?? (
29
<>
0 commit comments