Page MenuHomePhabricator

[lib] Move usePersistedStateLoaded() to lib package
ClosedPublic

Authored by angelika on Mon, Oct 28, 2:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 2:36 PM
Unknown Object (File)
Thu, Nov 21, 9:44 AM
Unknown Object (File)
Sun, Nov 17, 4:38 PM
Unknown Object (File)
Wed, Nov 13, 7:16 AM
Unknown Object (File)
Mon, Nov 11, 12:37 AM
Unknown Object (File)
Mon, Nov 11, 12:26 AM
Unknown Object (File)
Sun, Nov 10, 1:54 PM
Unknown Object (File)
Sun, Nov 10, 12:59 PM
Subscribers

Details

Summary

Related to: https://linear.app/comm/issue/ENG-9803/make-sure-peertopeermessagehandler-run-after-persisted-state-is-read

Web and native use similar mechanism for checking when state is read.
This diff unifies it and moves to lib package in order to use it later in PeerToPeerMessageHandler.

Test Plan

Run the app and web and make sure the app loads.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

I think it would've been easier to review this one if you had broken it down further: one diff that renames storeLoaded to initialStateLoaded on native, and another that does the rest

This revision is now accepted and ready to land.Tue, Oct 29, 4:36 AM