Skip to content

fix(wallet): add loading state during network balance refresh#396

Open
iwayemi5 wants to merge 3 commits into
accesslayerorg:mainfrom
iwayemi5:fix/wallet-balance-loading-state
Open

fix(wallet): add loading state during network balance refresh#396
iwayemi5 wants to merge 3 commits into
accesslayerorg:mainfrom
iwayemi5:fix/wallet-balance-loading-state

Conversation

@iwayemi5
Copy link
Copy Markdown

@iwayemi5 iwayemi5 commented May 31, 2026

Closes #361


Summary

This PR adds a loading state for wallet balances during network switches to prevent stale balances from being displayed.

Changes

  • Added a network-aware balance hook that immediately clears stale balance data when the active wallet/network balance key changes.
  • Updated featured wallet holdings consumers to use the new hook, including:
    • Profile view
    • Mobile holdings bar
    • Trade dialog
  • Displayed a loading state while balances are being refreshed after a network switch.
  • Disabled trade actions while the current network balance is loading.
  • Prevented late responses from previous network requests from overwriting current balance data

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

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

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 1, 2026

Deploy Preview for accesslayer failed.

Name Link
🔨 Latest commit 55dd184
🔍 Latest deploy log https://app.netlify.com/projects/accesslayer/deploys/6a1d876b6f8a830008eb5a0c

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.

Add loading state for wallet balance after network switch

2 participants