gitdataai/src/contexts
ZhenYi f2a2ae5d7f fix(room): use WS for message fetching, eliminate duplicate WS connection
- Fix initial room load being skipped: `setup()` called `loadMoreRef.current`
  which was null on first mount (ref assigned in later effect). Call `loadMore`
  directly so the initial fetch always fires. WS message.list used when
  connected, HTTP fallback otherwise.
- Rewrite useRoomWs to use shared RoomWsClient instead of creating its own
  raw WebSocket, eliminating duplicate WS connection per room.
- Remove dead loadMoreRef now that setup calls loadMore directly.
2026-04-17 21:18:56 +08:00
..
index.ts init 2026-04-15 09:08:09 +08:00
project-context.tsx init 2026-04-15 09:08:09 +08:00
repo-context.tsx init 2026-04-15 09:08:09 +08:00
repository-context.tsx feat(repo): return ssh/https clone URLs from backend 2026-04-16 18:20:48 +08:00
room-context.tsx fix(room): use WS for message fetching, eliminate duplicate WS connection 2026-04-17 21:18:56 +08:00
theme-context.tsx init 2026-04-15 09:08:09 +08:00
user-context.tsx init 2026-04-15 09:08:09 +08:00
workspace-context.tsx init 2026-04-15 09:08:09 +08:00