Skip to content

Optimizes the "Receive" tab experience by improving address loading#531

Merged
jamespepper81 merged 2 commits into
mainfrom
dev
Jan 30, 2026
Merged

Optimizes the "Receive" tab experience by improving address loading#531
jamespepper81 merged 2 commits into
mainfrom
dev

Conversation

@jamespepper81
Copy link
Copy Markdown
Contributor

This pull request optimizes the "Receive" tab experience by improving address loading and generation logic for better performance and reliability. The main changes focus on reducing UI delays, avoiding unnecessary cache clearing, and ensuring the freshest receiving address is shown instantly and correctly after address generation.

Address Loading Optimization

  • Removed aggressive cache clearing on screen focus to improve load times, relying on cache TTL and background verification for freshness.
  • Changed address loading logic to display the wallet's last address instantly, then verify/fetch the first unused address in the background for a smoother user experience.

Address Generation Improvements

  • Updated address generation flow to immediately use the newly generated address, fixing an issue where stale cache could show outdated addresses. Also, clears address metadata cache after generation to ensure future lookups are fresh.
  • Removed redundant fallback and reloading logic after address generation, simplifying the code and preventing unnecessary API calls.

Code Cleanup

  • Removed unused imports (useFocusEffect, useCallback) related to the old cache clearing logic.

claude and others added 2 commits January 30, 2026 00:24
- Remove aggressive cache clearing on screen focus that was causing 5-15 second delays
- Show wallet's last address instantly on load, then verify in background
- Fix New Address button to directly use the newly generated address instead of stale cache lookup
- Clear address metadata cache after generating new address for fresh future lookups
- Remove unused imports (useFocusEffect, useCallback)

The previous implementation cleared the address cache every time the Receive tab
was focused, forcing a full blockchain address discovery. This caused slow load
times on every tab navigation. The "New Address" button also failed to show the
new address because it queried stale cached metadata that didn't include the
newly generated address.

https://claude.ai/code/session_01QdDhtY1VwbnMResDP2spm8
…mance-VvYHU

perf: fix Receive tab QR code performance and New Address refresh
@jamespepper81 jamespepper81 merged commit 386d9ac into main Jan 30, 2026
13 checks passed
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