Skip to content

fix: prevent duplicate onSuccess callbacks#30

Merged
paulkr merged 1 commit intomainfrom
fix/duplicate-onsuccess-callbacks
Feb 4, 2026
Merged

fix: prevent duplicate onSuccess callbacks#30
paulkr merged 1 commit intomainfrom
fix/duplicate-onsuccess-callbacks

Conversation

@krish221997
Copy link
Contributor

  • Move event listener registration from hook initialization to open()
  • Add proper cleanup in close() with removeEventListener
  • Add message deduplication as defense-in-depth
  • Fixes issue where React StrictMode and re-renders caused listener accumulation

- Move event listener registration from hook initialization to open()
- Add proper cleanup in close() with removeEventListener
- Add message deduplication as defense-in-depth
- Fixes issue where React StrictMode and re-renders caused listener accumulation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@krish221997 krish221997 requested a review from moekatib as a code owner February 4, 2026 14:40
@paulkr paulkr merged commit 34d1548 into main Feb 4, 2026
@paulkr paulkr deleted the fix/duplicate-onsuccess-callbacks branch February 4, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants