Skip to content

Commit 2a6c788

Browse files
MH4GFclaude
andcommitted
Use stop() function in navigation guard
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent d51f9e1 commit 2a6c788

File tree

1 file changed

+1
-1
lines changed
  • frontend/apps/app/components/SessionDetailPage/hooks/useStream

1 file changed

+1
-1
lines changed

frontend/apps/app/components/SessionDetailPage/hooks/useStream/useStream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export const useStream = ({ designSessionId, initialMessages }: Props) => {
101101

102102
useNavigationGuard((_event) => {
103103
if (isStreaming) {
104-
abortRef.current?.abort()
104+
stop()
105105
}
106106
return true
107107
})

0 commit comments

Comments
 (0)