Page MenuHomePhabricator

[native] Extract default Redux state to separate file
ClosedPublic

Authored by ashoat on Sep 13 2023, 9:55 AM.
Tags
None
Referenced Files
F3001095: D9185.id31131.diff
Fri, Oct 18, 3:24 AM
Unknown Object (File)
Thu, Sep 26, 11:49 AM
Unknown Object (File)
Sep 15 2024, 1:38 PM
Unknown Object (File)
Sep 15 2024, 1:38 PM
Unknown Object (File)
Sep 15 2024, 1:38 PM
Unknown Object (File)
Sep 15 2024, 1:35 PM
Unknown Object (File)
Aug 26 2024, 9:54 PM
Unknown Object (File)
Aug 26 2024, 2:02 PM
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
No Lint Coverage
Unit
No Test Coverage