Page MenuHomePhabricator

[native] Extract default Redux state to separate file
ClosedPublic

Authored by ashoat on Wed, Sep 13, 9:55 AM.
Tags
None
Referenced Files
F774051: D9185.id31069.diff
Mon, Sep 25, 5:17 PM
Unknown Object (File)
Sun, Sep 24, 4:56 AM
Unknown Object (File)
Sun, Sep 24, 4:40 AM
Unknown Object (File)
Wed, Sep 20, 3:35 AM
Subscribers
None

Details

Summary

I want to import it from persist.js, but that would introduce a circular dependency since redux-setup.js already imports persist.js. The solution is to extract it to a separate file.

Test Plan
  1. Flow
  2. Confirmed that app starts correctly "from scratch" (no persisted Redux store)
  3. Confirmed that app starts correctly from an existing Redux store

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable