-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Gravatar accepts a type of "404" - which, if the email is invalid, will return a 404 status code (instead of say retro or wavatar, etc).
Currently though, there is no way to capture that and action via react-gravatar. It would be nice to be able to pass in a onError prop, and let it be mounted to the img element. This way, a parent component, could catch it, and render a more app relevant default image.
Alternatively, a defaultComponent prop could be passed, that when a 404 is returned, the react-gravatar would render it instead.
Happy to PR if this aligns with the projects goals
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels