You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: drop useReactiveValue from MessageBox.canSend
The canSendMessage room directive reads Subscriptions.state.count,
which is a Zustand snapshot — Tracker.autorun inside useReactiveValue
never registered a dep on it, so the previous reactivity was effectively
broken. Subscribe properly via useSyncExternalStore on Subscriptions.use
so canSend updates when the user joins or leaves the room.
0 commit comments