Optimizes the "Receive" tab experience by improving address loading#531
Merged
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Address Generation Improvements
Code Cleanup
useFocusEffect,useCallback) related to the old cache clearing logic.