Page MenuHomePhabricator

[lib] Introduce useENSAvatar hook
ClosedPublic

Authored by ashoat on Mar 23 2023, 9:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 29 2024, 7:19 PM
Unknown Object (File)
Sep 30 2024, 7:47 AM
Unknown Object (File)
Sep 30 2024, 7:47 AM
Unknown Object (File)
Sep 30 2024, 7:47 AM
Unknown Object (File)
Sep 30 2024, 7:47 AM
Unknown Object (File)
Sep 25 2024, 3:54 PM
Unknown Object (File)
Aug 27 2024, 6:32 PM
Unknown Object (File)
Aug 27 2024, 4:21 AM
Subscribers

Details

Summary

More context in the discussion under ENG-3302. We decided to make this a hook to separate fetching and rendering concerns.

This is mostly modelled after useENSNames, except that we only need to handle one fetch at a time in this hook.

Test Plan

I tested with this patch, which uses an ENS name that points to an NFT in the user's wallet that is an SVG data URI: https://gist.github.com/Ashoat/461523a089b78554ce3a36dcf3115661

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable