Page MenuHomePhabricator

[lib] Introduce useENSAvatar hook
ClosedPublic

Authored by ashoat on Mar 23 2023, 9:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 18, 7:50 PM
Unknown Object (File)
Sat, May 18, 5:56 PM
Unknown Object (File)
Sat, May 18, 1:43 PM
Unknown Object (File)
Wed, May 15, 1:34 AM
Unknown Object (File)
Mon, May 13, 5:04 AM
Unknown Object (File)
Sun, May 5, 10:37 PM
Unknown Object (File)
Apr 17 2024, 10:32 AM
Unknown Object (File)
Apr 17 2024, 10:32 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