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 6409d28 commit 136085fCopy full SHA for 136085f
packages/react-hooks/src/hooks/useTriggerChat.ts
@@ -398,13 +398,16 @@ function subscribeToDataStreams(params: {
398
if (subscribedStreams.has(stream)) continue;
399
400
subscribedStreams.add(stream);
401
- streamDataFromTrigger({
+ void streamDataFromTrigger({
402
streamKey: stream,
403
runId,
404
baseURL,
405
accessToken,
406
runAbortController,
407
controller,
408
+ }).catch((error) => {
409
+ controller.error(error);
410
+ runAbortController.abort();
411
});
412
}
413
0 commit comments