Skip to content

perf: optimize synchronizationEngine to only broadcast persisted state#834

Merged
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
larryjay007:feat/optimize-sync-engine
Jun 29, 2026
Merged

perf: optimize synchronizationEngine to only broadcast persisted state#834
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
larryjay007:feat/optimize-sync-engine

Conversation

@larryjay007

Copy link
Copy Markdown
Contributor

Description

Optimized the Zustand synchronizationEngine to only broadcast persisted state keys (user, preferences, offlineMode, lastSynced). Transient UI fields like isSidebarOpen no longer trigger unnecessary cross-tab messages.

Related Issue

Closes #742

Type of Change

  • Performance improvement / Optimization

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • No console errors
  • Uses Lucide icons consistently (N/A)
  • Responsive design implemented (N/A)
  • Starknet best practices followed (N/A)

- Added SYNC_KEYS allowlist
- Broadcast only relevant slice (exclude transient UI)
- Closes rinafcode#742
@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@larryjay007 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@larryjay007

Copy link
Copy Markdown
Contributor Author

@RUKAYAT-CODER , please review and let me know if you need any other changes made.

@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project.

@RUKAYAT-CODER RUKAYAT-CODER merged commit e71d301 into rinafcode:main Jun 29, 2026
4 checks passed
@larryjay007

Copy link
Copy Markdown
Contributor Author

awesome, i hope we can do more. please look out for my Username: larryjay007 . i will apply and continue to contribute to your wonderful project.

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.

[Performance] synchronizationEngine broadcasts all Zustand state including transient UI fields

2 participants