Page MenuHomePhabricator

[lib] getKeyserverAdmin -> useKeyserverAdmin
ClosedPublic

Authored by ashoat on Jan 29 2023, 2:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 27, 10:51 AM
Unknown Object (File)
Tue, Sep 17, 11:10 PM
Unknown Object (File)
Tue, Sep 17, 11:10 PM
Unknown Object (File)
Tue, Sep 17, 11:10 PM
Unknown Object (File)
Tue, Sep 17, 11:07 PM
Unknown Object (File)
Sun, Sep 15, 11:39 AM
Unknown Object (File)
Aug 25 2024, 5:52 PM
Unknown Object (File)
Aug 12 2024, 4:59 AM
Subscribers

Details

Summary

This makes sense as a hook, and it will make it easier to incorporate useENSNames in the next diff.

Test Plan

Flow, and making sure CommunityPill on native & ChatThreadAncestors on web still look right (only two uses of this function)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

native/components/community-pill.react.js
22 ↗(On Diff #21533)

I think it's okay to get rid of this useMemo since we're memoizing a primitive here, but if the CPU cost of community.members.find is judged too high I can bring it back

atul edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Jan 29 2023, 3:31 PM