简介
React 实时数据 Hook 库,集成 SSE、WebSocket 与 SWR,提供连接管理、自动重连及乐观更新模式,适用于仪表盘、聊天等实时场景。
原始描述
React hooks for real-time data with SSE, WebSocket, and SWR integration. Covers connection management, reconnection logic, and optimistic updates. Use when building React apps with real-time features. Triggers on SSE hook, WebSocket hook, real-time React, useEventSource, live updates.