Skip to content

Fix/wallet balance loading stat#417

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

Fix/wallet balance loading stat#417
iwayemi5 wants to merge 2 commits into
accesslayerorg:mainfrom
iwayemi5:fix/wallet-balance-loading-stat

Conversation

@iwayemi5
Copy link
Copy Markdown

@iwayemi5 iwayemi5 commented Jun 2, 2026

Summary

This PR adds a loading state for wallet balances during network switches to prevent stale balance values from being displayed while new balance data is being fetched.

Changes Made

  • Added a network-aware loading state for wallet balances.
  • Triggered the loading state immediately when a network switch is detected.
  • Prevented stale balance values from being displayed during balance refresh.
  • Resolved the loading state once the updated balance is successfully loaded.
  • Reused existing balance-fetching logic where possible to avoid duplicate behavior.
  • Added test coverage for network switching and balance loading scenarios.

Testing

  • Verified that a loading state appears immediately after a network switch.
  • Verified that stale balances are not displayed during network transitions.
  • Verified that the loading state is cleared once the updated balance becomes available.
  • Confirmed existing wallet balance functionality remains unaffected.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 2, 2026

Hey @iwayemi5! 👋 It looks like this PR isn't linked to any issue.

If this PR is for one of the issues assigned to you as part of a Wave, please link it to ensure your contribution is tracked properly. You can do this by adding a keyword to the PR description (e.g., Closes #123), or by clicking a button below:

Issue Title
#361 Add loading state for wallet balance after network switch Link to this issue

ℹ️ Learn more about linking PRs to issues

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 2, 2026

Deploy Preview for accesslayer failed.

Name Link
🔨 Latest commit aac19e4
🔍 Latest deploy log https://app.netlify.com/projects/accesslayer/deploys/6a1e325bbf791a00089ed62f

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