refactor the currency list token row component to not change every time one of the dependencies changes
Open
Nobody has claimed this yet.
p1
refactor
- Dominant language
- TypeScript
- Stars
- 5.5k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
creating a new component forces the entire list to re-render
better to rewrite this so the rendering component doesn't have to memoize everything or else break the component
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/components/SearchModal/CurrencyList.tsx, lines 217-263, and inspect how the currency list row component is created and how its dependencies trigger rendering. Verify the current list behavior while changing a dependency. Done means the row rendering no longer causes the entire list to re-render whenever one dependency changes, without requiring broad memoization.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, performance
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100