HomePhabricator
Diffusion Comm 72aa035507f4

[lib] Introduce relationship callbacks

Description

[lib] Introduce relationship callbacks

Summary:
Create a hook that returns functions that modify the relationship. This hook depends only on userID and onErrorCallback so it's a lot more convenient to use.
Depends on D3733

Test Plan: Send friend request by using relationship prompt and check if the state was updated.

Reviewers: benschac, atul, def-au1t

Reviewed By: atul

Subscribers: ashoat, Adrian, karol-bisztyga, yayabosh

Differential Revision: https://phabricator.ashoat.com/D3734

Details

Provenance
tomekAuthored on Apr 14 2022, 11:22 AM
Reviewer
atul
Differential Revision
D3734: [lib] Introduce relationship callbacks
Parents
rCOMM5ca80568eb18: [lib] Delete extraneous invariant and dependency from relationship changeā€¦
Branches
Unknown
Tags
Unknown