Skip to content

Conversation

@ajey35
Copy link

@ajey35 ajey35 commented Jan 22, 2026

Disabled Auto-Sync on Wallet Page

This PR fixes #58 that the wallet page does not auto-sync and only loads data from cache unless the user manually refreshes.

Verified Changes

  • updateBalance, updateTransactions, updateUtxos now return early when useCache === true.
  • Wallet initialization uses cache-only loading.
  • Manual refresh still triggers network fetches (useCache === false).

Behavior

  • First visit (no cache): Empty/zero values, no network calls.
  • Cached visit: Instant load from cache, no network calls.
  • Refresh click: Network calls execute and cache updates.

File Changed

  • src/components/wallet/Wallet.js

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.

Don't auto sync on wallet page

1 participant