Page MenuHomePhabricator

[lib] Introduce useENSAvatar hook
ClosedPublic

Authored by ashoat on Mar 23 2023, 9:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 10:32 AM
Unknown Object (File)
Wed, Apr 17, 10:32 AM
Unknown Object (File)
Wed, Apr 17, 10:32 AM
Unknown Object (File)
Wed, Apr 17, 10:31 AM
Unknown Object (File)
Feb 22 2024, 3:11 PM
Unknown Object (File)
Feb 22 2024, 12:02 PM
Unknown Object (File)
Feb 22 2024, 11:56 AM
Unknown Object (File)
Feb 22 2024, 3:24 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