Page MenuHomePhabricator

[lib] Make FarcasterDataHandler go through useFindUserIdentities
ClosedPublic

Authored by ashoat on Aug 19 2024, 2:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 5, 11:29 AM
Unknown Object (File)
Wed, Sep 25, 1:30 AM
Unknown Object (File)
Wed, Sep 25, 1:30 AM
Unknown Object (File)
Sep 13 2024, 1:32 AM
Unknown Object (File)
Sep 5 2024, 3:16 AM
Unknown Object (File)
Sep 4 2024, 7:17 AM
Unknown Object (File)
Sep 3 2024, 3:10 PM
Unknown Object (File)
Aug 31 2024, 11:51 AM
Subscribers

Details

Summary

There are currently two components that call findUserIdentities: UserInfosHandler and FarcasterDataHandler.

The former goes through useFindUserIdentities, but the latter accesses findUserIdentities directly via the IdentityClientContext context.

This diff makes both of them go through useFindUserIdentities, as preparation for adding a caching layer to that hook.

This is the first step to addressing ENG-9002.

Test Plan

This is a simple refactor. I made sure that IdentityClientContext should always be set where FarcasterDataHandler is rendered on both native and web.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable