Swap inputs should be debounced #28631
Labels
feature/web3/wallet/swap
feature/web3/wallet
Integrating Ethereum+ wallet support
front-end-change
This task is a front end task and doesn't need any C++ changes
OS/Desktop
perf
QA Pass-Win64
QA/Yes
release-notes/include
Milestone
Currently, N updates to the From/To amounts in Swap will trigger N requests to the 0x/Jupiter APIs. This is not just unnecessary, but also makes the UI sluggish due to large number of HTTP requests being triggered.
The input fields should therefore be debounced - meaning, a request to the 0x/Jupiter API will only be done after 1s (say) has passed since the last keystroke.
The text was updated successfully, but these errors were encountered: