fix(reactions): broadcast reaction updates to all room viewers #22
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/reactions-broadcast-to-peers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ReactionBar held an internal use_signal initialized once from the
initial_reactions prop, ignoring later prop changes. The reacter saw
their toggle because the click handler called reactions.set(updated)
locally, but peers did not refresh: the parent updated reactions_map
from the WS event, the prop changed, but the bar's internal signal
stayed stale.
Drop the internal signal and render the prop directly. The hub already
broadcasts ReactionAdded/Removed to every room subscriber including the
sender, so reacter and peers both see the update via the same path.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com