HomePhabricator
Diffusion Comm b92b5e5e79cb

Move Store Loaded to redux

Description

Move Store Loaded to redux

Summary: This differential introduces store loaded to redux and makes sure it is not persisted. There are components that check storeLoaded flag to ensure data from SQLite was inserted to redux. Setting this flag in react state after redux actions are dispatched introduces some sort of race condition. Therefore we should keep this flag in redux and set it in reducer in response to the same action that inserts SQLite data.

Test Plan: Make sure eslint and flow do not complain. add code in reducer in native that sets this flag to true. Add logging to make sure this flag is false after re-starting application.

Reviewers: tomek, ashoat

Reviewed By: tomek, ashoat

Subscribers: ashoat, tomek, atul

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

Details

Provenance
marcinAuthored on Nov 23 2022, 6:11 AM
Reviewer
tomek
Differential Revision
D5709: Move Store Loaded to redux
Parents
rCOMM755db82cfb9b: Introduce bulk db store redux action
Branches
Unknown
Tags
Unknown