Page MenuHomePhabricator

[lib] Introduce useENSAvatar hook
ClosedPublic

Authored by ashoat on Mar 23 2023, 9:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 23, 3:40 PM
Unknown Object (File)
Sat, Mar 22, 8:41 PM
Unknown Object (File)
Sun, Mar 2, 7:54 AM
Unknown Object (File)
Jan 22 2025, 5:03 PM
Unknown Object (File)
Jan 22 2025, 4:51 PM
Unknown Object (File)
Jan 15 2025, 5:06 PM
Unknown Object (File)
Jan 14 2025, 3:47 AM
Unknown Object (File)
Jan 8 2025, 3:22 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