Igor Loskutov
2dfe82afbc
feat: add useTranscriptChat WebSocket hook
Task 5: Frontend WebSocket Hook
- Creates React hook for bidirectional chat WebSocket
- Handles token streaming with proper state accumulation
- Manages conversation history (user + assistant messages)
- Prevents memory leaks with isMounted check
- Proper cleanup on unmount
- Type-safe Message interface
Validated:
- No React dependency issues (removed currentStreamingText from deps)
- No stale closure bugs (using ref for streaming text)
- Proper mounted state tracking
- Lint passes with no errors
- TypeScript types correctly defined
- WebSocket cleanup on unmount
~100 lines
2026-01-12 18:44:09 -05:00
..
2025-12-01 23:35:12 -05:00
2025-09-11 11:20:41 -04:00
2024-09-01 01:20:00 +02:00
2025-11-14 13:36:25 +01:00
2025-09-05 16:01:31 -06:00
2024-09-01 01:20:00 +02:00
2025-11-14 14:28:39 +01:00
2024-09-01 01:20:00 +02:00
2024-09-01 01:20:00 +02:00
2025-09-16 10:57:35 +02:00
2025-09-09 10:50:29 -04:00
2024-09-01 01:20:00 +02:00
2025-10-24 16:52:02 -04:00
2025-11-26 18:51:14 +01:00
2025-09-11 11:20:41 -04:00
2025-10-24 16:52:02 -04:00
2025-11-14 13:36:25 +01:00
2025-07-15 15:10:05 -06:00
2025-09-11 11:20:41 -04:00
2025-09-05 16:01:31 -06:00
2025-09-05 16:01:31 -06:00
2025-09-05 16:01:31 -06:00
2026-01-12 18:44:09 -05:00
2025-09-05 16:01:31 -06:00
2025-09-05 16:01:31 -06:00
2025-09-29 23:07:49 +02:00
2025-07-21 16:16:12 -06:00
2025-09-09 10:50:29 -04:00