HomePhabricator
Diffusion Comm d9cb54ebdc11

[native] Introduce a hook that allows running an effect just once per…

Description

[native] Introduce a hook that allows running an effect just once per installation

Summary:
When checking referrer on Android, we would like to do it at most once per installation. To achieve that we can set a value in AsyncStorage and run the effect only if the value is not set.

Depends on D7743

Test Plan: Tested in combination with the next diff. Install the app using the referrer on Android, open the app and cancel invitation, close and open the app - the invitation shouldn't appear again.

Reviewers: bartek, kamil, inka, ashoat

Reviewed By: bartek, ashoat

Subscribers: ashoat, atul

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

Details

Provenance
tomekAuthored on May 9 2023, 2:30 AM
Reviewer
bartek
Differential Revision
D7751: [native] Introduce a hook that allows running an effect just once per installation
Parents
rCOMM7c38edf5ea5d: [native] Unsubscribe listener on unmount
Branches
Unknown
Tags
Unknown