Fix chat messages not appearing without refresh #7

Merged
ryan merged 1 commits from fix/chat-append-messages into main 2026-03-03 19:41:52 +00:00
Owner

Summary

  • Append new chat messages individually instead of re-rendering the entire game
  • Add ChatMessage component for single message rendering
  • Add ID to chat history div for targeted SSE patching

Previously patchAll() re-rendered the full GameContent on every chat message, which was inefficient and could cause the message to not appear. Now we use WithModeAppend() to append just the new message to the chat history.

## Summary - Append new chat messages individually instead of re-rendering the entire game - Add `ChatMessage` component for single message rendering - Add ID to chat history div for targeted SSE patching Previously `patchAll()` re-rendered the full `GameContent` on every chat message, which was inefficient and could cause the message to not appear. Now we use `WithModeAppend()` to append just the new message to the chat history.
ryan added 1 commit 2026-03-03 19:17:11 +00:00
Reapply "fix: append chat messages instead of re-rendering entire game"
Some checks failed
CI / Deploy / test (pull_request) Successful in 14s
CI / Deploy / lint (pull_request) Failing after 2s
CI / Deploy / deploy (pull_request) Has been skipped
c52c389f0c
This reverts commit 513467470c.
ryan merged commit 90ef970d14 into main 2026-03-03 19:41:52 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ryan/games#7