fix: prevent redundant sync re-initialization on room navigation #193

Closed
rajanarahul93 wants to merge 1 commits from rajanarahul93/flotilla:fix/sync-space-reinit into dev
First-time contributor

Summary:
Fixes redundant sync teardown and re-initialization when navigating between rooms.

Changes:

  • Removed room-based keying from syncSpaces
  • Sync now initializes once per space (URL-based)

Impact:

  • Prevents unnecessary CLOSE/REQ cycles
  • Reduces network churn and CPU overhead

Notes:
Duplicate listeners inside syncSpace were not modified, as they appear intentional due to relay constraints (#h filtering).
fixes:- #190

Summary: Fixes redundant sync teardown and re-initialization when navigating between rooms. Changes: - Removed room-based keying from syncSpaces - Sync now initializes once per space (URL-based) Impact: - Prevents unnecessary CLOSE/REQ cycles - Reduces network churn and CPU overhead Notes: Duplicate listeners inside syncSpace were not modified, as they appear intentional due to relay constraints (#h filtering). fixes:- #190
rajanarahul93 added 1 commit 2026-04-11 21:08:03 +00:00
rajanarahul93 force-pushed fix/sync-space-reinit from edad66d7b0 to fefe1236a8 2026-04-11 21:08:03 +00:00 Compare
rajanarahul93 closed this pull request 2026-04-11 21:14:46 +00:00
Author
First-time contributor

Closing this since the fix is already present in upstream (commit 9f386f69).

After syncing with the latest dev branch, the redundant re-initialization logic has already been removed and sync is now correctly URL-based.

No additional changes needed from this PR.

Closing this since the fix is already present in upstream (commit 9f386f69). After syncing with the latest dev branch, the redundant re-initialization logic has already been removed and sync is now correctly URL-based. No additional changes needed from this PR.

Pull request closed

Sign in to join this conversation.