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
F3367918: D9185.diff
Mon, Nov 25, 5:11 PM
Unknown Object (File)
Thu, Nov 21, 6:22 AM
Unknown Object (File)
Thu, Nov 21, 6:22 AM
Unknown Object (File)
Thu, Nov 21, 6:22 AM
Unknown Object (File)
Thu, Nov 21, 6:20 AM
Unknown Object (File)
Sun, Nov 3, 4:20 PM
Unknown Object (File)
Oct 22 2024, 9:10 AM
Unknown Object (File)
Oct 22 2024, 9:10 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