Uniswap / Uniswap/interface

performance: debounce processing of the typed input in the swap page

Open
#2,093 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #2109 by @lukedonato — closed without merging
improvement p1
Dominant language
TypeScript
Stars
5.5k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

typing an amount into the swap page causes us to immediately recompute the route which causes a delay, we should debounce this at least 150ms or so to improve the ux

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the swap page's typed-input handling and the route recomputation entry point. Review the closed pull request #2109 for prior context, then verify that route processing waits at least 150ms after typing stops without breaking the swap flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, performance
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.