fix(reactions): broadcast reaction updates to all room viewers #22

Merged
nrupard merged 1 commit from fix/reactions-broadcast-to-peers into main 2026-04-29 16:01:26 +02:00
Owner

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

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>
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>
nrupard deleted branch fix/reactions-broadcast-to-peers 2026-04-29 16:01:26 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/lets-chat!22
No description provided.