Skip to content

Buy/Sell/Swap: Ref - external services prefetch data#2116

Merged
JohnathanWhite merged 4 commits intobitpay:developfrom
Gamboster:ref/externalServicesPrefetchData
Apr 9, 2026
Merged

Buy/Sell/Swap: Ref - external services prefetch data#2116
JohnathanWhite merged 4 commits intobitpay:developfrom
Gamboster:ref/externalServicesPrefetchData

Conversation

@Gamboster
Copy link
Copy Markdown
Collaborator

In this PR:

  • I refactored the prefetch of externalServices (config and swap supported currencies) to avoid using Redux during app initialization, thus reducing potential UI freezes during data saving.

  • The cache is now modular-level and remains in memory while the session is active.

  • I refactored the getExternalServicesConfig to run only once and then reuse it in buy/sell/swap.

  • I removed the ongoing process from Buy/Sell (it had already been removed from Swap) and replaced it with spinners/skeletons from the view, in an attempt to reduce the time it takes for the user to interact with these features.

  • Fix: Accessing Buy/Sell from wallet details now correctly selects the wallet from which the user is accessing the feature.

@Gamboster Gamboster marked this pull request as draft April 2, 2026 21:48
@JohnathanWhite JohnathanWhite changed the base branch from master to develop April 2, 2026 22:46
@Gamboster Gamboster marked this pull request as ready for review April 6, 2026 14:45
@Gamboster Gamboster changed the title WIP: Buy/Sell/Swap: Ref - external services prefetch data Buy/Sell/Swap: Ref - external services prefetch data Apr 6, 2026
@JohnathanWhite JohnathanWhite merged commit 5eda5ed into bitpay:develop Apr 9, 2026
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