fix: prevent loading spinner delay after deleting last wallet#11407
fix: prevent loading spinner delay after deleting last wallet#114070xApotheosis merged 1 commit intodevelopfrom
Conversation
📝 WalkthroughWalkthroughA single configuration change was made to disable automatic retries in the React Query hook for the wallet list fetch operation, causing errors to surface immediately without subsequent retry attempts. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (6)**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{tsx,jsx}📄 CodeRabbit inference engine (.cursor/rules/error-handling.mdc)
Files:
**/*.{js,jsx,ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/naming-conventions.mdc)
Files:
**/*.{jsx,tsx}📄 CodeRabbit inference engine (.cursor/rules/react-best-practices.mdc)
Files:
**/*.tsx📄 CodeRabbit inference engine (.cursor/rules/react-best-practices.mdc)
Files:
🧠 Learnings (8)📓 Common learnings📚 Learning: 2025-10-01T07:42:40.195ZApplied to files:
📚 Learning: 2025-11-19T16:59:50.569ZApplied to files:
📚 Learning: 2025-09-12T12:00:33.924ZApplied to files:
📚 Learning: 2025-09-04T12:16:47.748ZApplied to files:
📚 Learning: 2025-09-12T13:16:27.004ZApplied to files:
📚 Learning: 2025-09-12T12:00:33.924ZApplied to files:
📚 Learning: 2025-08-22T13:02:58.824ZApplied to files:
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Fixes a loading spinner that would appear for several seconds after deleting the last wallet on mobile.
Root Cause
In #11180 (0cd2b30), the wallet list query was changed to throw an error when no wallets exist, instead of the previous approach of calling
setError()directly. This triggers React Query's default retry behavior (3 retries with exponential backoff), causing a multi-second spinner delay before the "no wallets" state is shown.Fix
Added
retry: falseto the query options to prevent unnecessary retries when no wallets exist.Issue (if applicable)
None, affects current release.
Risk
Low
N/A
Testing
When deleting the last wallet from the native app, the empty wallet page should show immediately without showing a useless loading spinner.
Engineering
👆
Operations
👆
Screenshots (if applicable)
N/A
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.