Skip to content

[Bug]: Wrong AvatarIcon appears on list item #21900

@hesterbruikman

Description

@hesterbruikman

Describe the bug
On some occasions an unexpected token avatar is displayed. Possible cause: FlashList Cell recycling without proper component keys

Problem chain identified by cursor:

  • FlashList recycles cells for performance (positions 0-3 cells reused for positions 10-13)
  • TokenListItem receives new assetKey prop with different address/chainId ✅
  • React re-renders TokenListItem with new data ✅
  • asset object updates with new token data ✅
  • Text components update because string children change ✅
  • AvatarToken has no key prop - React thinks it's the same component instance ❌
  • React Native Image component doesn't properly reload the image ❌
  • Previous token's image persists in the recycled cell ❌

Expected behavior

  • mUSD icon is the correct mUSD icon

Screenshots/Recordings
Image

Steps to reproduce
Rapid scroll on asset list

Error messages or log output

Detection stage

In production (default)

Version

7.57

Build type

None

Device

Unknown

Operating system

Other (please elaborate in the "Additional Context" section)

Metadata

Metadata

Assignees

No one assigned

    Labels

    INVALID-ISSUE-TEMPLATEIssue's body doesn't match any issue template.Sev2-normalAn issue that may lead to users misunderstanding some limited risks they are takingneeds-reproductionregression-prod-*Regression bug that was found in production in release *staleIssues that have not had activity in the last 90 daysteam-assetstype-bugSomething isn't working

    Type

    Projects

    Status

    To be triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions