Skip to content

Fix duplicate state bindings in WalletModal - #347

Merged
Dev-Zully merged 1 commit into
OdyxeeeLabs:mainfrom
gitGolf:fix/wallet-modal-performance
Aug 26, 2026
Merged

Fix duplicate state bindings in WalletModal#347
Dev-Zully merged 1 commit into
OdyxeeeLabs:mainfrom
gitGolf:fix/wallet-modal-performance

Conversation

@gitGolf

@gitGolf gitGolf commented Aug 25, 2026

Copy link
Copy Markdown

Resolves #209

Category: Bug · Priority: Medium
Labels: frontend, wallet, performance

WalletModal destructures state from both useWalletStore((s) => s.isModalOpen) (individual selectors) and useWallet() (which selects the full state object). This causes two separate subscriptions to the same state, redundant re-renders, and potential stale reads when the two subscriptions update out of sync.

Acceptance Criteria:

  • Remove the duplicate useWallet() call
  • Use individual useWalletStore selectors consistently throughout the component

@drips-wave

drips-wave Bot commented Aug 25, 2026

Copy link
Copy Markdown

@gitGolf 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

@Dev-Zully
Dev-Zully merged commit 0139c95 into OdyxeeeLabs:main Aug 26, 2026
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.

WalletModal duplicates state by subscribing to both useWalletStore and useWallet

2 participants