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
fix: restore spotlight vote overlay re-selection after spotlight moves
onClick was stored in spotlightStackItems state, closing over a stale
handleSpotlightStatementClick that still saw the old activeSpotlightStatementId.
When the spotlight moved, the vote state was reset but the stale handler
would detect activeStatementId === statementId and toggle off instead of on.
Fix: store only data in state; inject onClick at render time so it always
closes over the current handler with the current activeSpotlightStatementId.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments