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)
Wed, Apr 16, 2:31 PM
Unknown Object (File)
Wed, Apr 16, 7:59 AM
Unknown Object (File)
Wed, Apr 16, 4:38 AM
Unknown Object (File)
Mon, Apr 14, 8:57 PM
Unknown Object (File)
Mar 16 2025, 3:30 PM
Unknown Object (File)
Mar 11 2025, 9:38 AM
Unknown Object (File)
Mar 5 2025, 2:46 PM
Unknown Object (File)
Mar 5 2025, 3:48 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