Skip to content

Commit

Permalink
fix: disable loading when error occurs in streams
Browse files Browse the repository at this point in the history
  • Loading branch information
notmedia committed Dec 6, 2022
1 parent dc31a9b commit 554eca6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ export function useBidirectionalStreaming() {
{ title: 'Invoke request error', description: error.message },
{ type: 'error' }
);

deleteContext(tab.id);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export function useClientStreaming() {
{ title: 'Invoke request error', description: error.message },
{ type: 'error' }
);

deleteContext(tab.id);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ export function useServerStreaming() {
{ title: 'Invoke request error', description: error.message },
{ type: 'error' }
);

deleteContext(tab.id);
}
}

Expand Down

0 comments on commit 554eca6

Please sign in to comment.