HomePhabricator
Diffusion Comm 9ed964923662

[web/lib] move reading and populating data to state gate

Description

[web/lib] move reading and populating data to state gate

Summary:
We need to:

  1. See what's in DB before calling callGetInitialReduxState() - based on this we can add params to fetch/skip some store parts.
  2. Wait with rendering app until data from DB is read - similar thing as on native.
  3. Migrate data if needed - we don't have data in redux-persist like on native, if there is no data in DB we need to get it from keyserver and put into DB.

Depends on D9949

Test Plan: Check if app still loads after refresh, and if persistence (drafts) works.

Reviewers: tomek, michal

Reviewed By: tomek

Subscribers: ashoat

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

Details

Provenance
kamilAuthored on Nov 20 2023, 10:19 AM
Reviewer
tomek
Differential Revision
D9951: [web/lib] move reading and populating data to state gate
Parents
rCOMMeb4b2ed4962a: [web/keyserver] make InitialReduxStateResponder configurable
Branches
Unknown
Tags
Unknown