Skip to content

Commit 411d21e

Browse files
committed
docs(use-x-chat): add loading for stream demo
1 parent 6f72729 commit 411d21e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/use-x-chat/demo/stream.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const App = () => {
4646
style={{ maxHeight: 300 }}
4747
items={messages.map(({ id, message, status }) => ({
4848
key: id,
49+
loading: status === 'loading',
4950
role: status === 'local' ? 'local' : 'ai',
5051
content: message,
5152
}))}

0 commit comments

Comments
 (0)