Avatar fallback order should not happen when a URL is broken

Open Beginner friendly
#48,190 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
64/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
javascript, react
Domain
frontend

Research direction

Start by locating the Avatar component and reproduce the case with an undefined src and fallback order. Done means avatars without valid URLs use the fallback order without requesting /broken.jpg or producing repeated 404 errors.

Written by the indexing model from the issue text.

Description

has workaround scope: avatar waiting for 👍

I shouldn't have to provide /broken.jpg just to use the Avatar fallback order. In a situation like a chat room, where there are multiple avatars that don't have a valid avatar URL, the app is constantly trying to fetch /broken.jpg, resultin gin multiple 404 errors. Please allow src to be undefined and will still fallback on the order.

Search keywords:

Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 20h
Merged PRs (30d)
108

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.

More from mui/material-ui

All issues in mui/material-ui

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.