Skip to content

Commit 9a83f6d

Browse files
committed
chore: move
1 parent 4624aee commit 9a83f6d

13 files changed

+6
-2
lines changed

docs/config.json

+4
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,10 @@
957957
{
958958
"label": "Devtools Embedded Panel",
959959
"to": "framework/react/examples/devtools-panel"
960+
},
961+
{
962+
"label": "Chat example (streaming)",
963+
"to": "framework/react/examples/chat"
960964
}
961965
]
962966
},
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/react/streaming/package.json examples/react/chat/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@tanstack/query-example-react-simple",
2+
"name": "@tanstack/query-example-chat",
33
"private": true,
44
"type": "module",
55
"scripts": {

examples/react/streaming/src/chat.ts examples/react/chat/src/chat.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function chatAnswer(_question: string) {
1515
let index = 0
1616
while (index < answer.length) {
1717
await new Promise((resolve) =>
18-
setTimeout(resolve, 100 + Math.random() * 500),
18+
setTimeout(resolve, 100 + Math.random() * 300),
1919
)
2020
yield answer[index++]
2121
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)