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)
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
Unknown Object (File)
Fri, Nov 8, 11:06 PM
Unknown Object (File)
Wed, Nov 6, 2:35 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
Lint Not Applicable
Unit
Tests Not Applicable

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