Page MenuHomePhabricator

[lib][web][native] refactor `getClientDBStore` to be part of SQLiteAPI
AcceptedPublic

Authored by kamil on Thu, Apr 3, 3:36 AM.

Details

Reviewers
bartek
Summary

ENG-10473

We're now able to call it from /lib and we have a consistent approach.

Depends on D14524

Test Plan

Close and open web/native app to make sure it still works

Diff Detail

Repository
rCOMM Comm
Branch
backup-publish
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Thu, Apr 3, 3:53 AM
kamil added inline comments.
native/database/store.js
66

This file is copy-pasted, the only change is this line. Previously, we had a bug because of passing communities - I have no idea why Flow failed to catch it

web/redux/initial-state-gate.js
73

As you can see in store.js, on web this was hardcoded to null

This revision is now accepted and ready to land.Thu, Apr 3, 4:42 AM