HomePhabricator
Diffusion Comm 3d533a2092bb

[lib/native] introduce useUnlinkFID

Description

[lib/native] introduce useUnlinkFID

Summary:
This diff introduces useUnlinkFID which is a hook that returns a callback that calls the unlinkFarcasterAccount identity rpc and then clears the fid from the synced metadata client store

Linear task: https://linear.app/comm/issue/ENG-7412/call-unlink-farcaster-rpc-on-the-client

Depends on D11863

Test Plan:
Confirmed that the fid was being cleared from the synced metadata client store + confirmed in meeting with @varun that I was correctly calling and getting the expected behavior of unlinkFarcasterAccount RPC

Confirmed that loading + error states worked as expected

Reviewers: varun, will, ashoat

Reviewed By: ashoat

Subscribers: ashoat, tomek, varun

Differential Revision: https://phab.comm.dev/D11864

Details

Provenance
ginsuAuthored on May 15 2024, 11:49 AM
Reviewer
ashoat
Differential Revision
D11864: [lib/native] introduce useUnlinkFID
Parents
rCOMMc6d7b95517e7: [lib/native] introduce useLinkFID hook
Branches
Unknown
Tags
Unknown