Page MenuHomePhabricator

[lib] Refactor baseReducer
ClosedPublic

Authored by inka on Nov 16 2023, 8:13 AM.
Tags
None
Referenced Files
F5575696: D9915.diff
Sat, Apr 12, 6:30 PM
Unknown Object (File)
Mon, Apr 7, 2:57 PM
Unknown Object (File)
Mon, Mar 17, 11:09 PM
Unknown Object (File)
Feb 21 2025, 11:08 AM
Unknown Object (File)
Feb 21 2025, 11:08 AM
Unknown Object (File)
Feb 21 2025, 11:08 AM
Unknown Object (File)
Feb 21 2025, 11:08 AM
Unknown Object (File)
Feb 21 2025, 10:59 AM
Subscribers

Details

Summary

issue: https://linear.app/comm/issue/ENG-5348/refactor-basereducer
We want to check this condition for every keyserver. See D1066 for context on what this code does

Test Plan

Tested that iff not connected, the inner ifs are run

Diff Detail

Repository
rCOMM Comm
Branch
inka/reducers
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Nov 16 2023, 8:39 AM
lib/reducers/master-reducer.js
78–81 ↗(On Diff #33341)

Invert this condition and use continue to reduce indentation

Rebase, reduce indentation

This revision is now accepted and ready to land.Nov 17 2023, 8:09 AM
This revision was automatically updated to reflect the committed changes.
lib/reducers/master-reducer.js
102 ↗(On Diff #33511)

For future reference, the new Flow requires an annotation here

lib/reducers/master-reducer.js
102 ↗(On Diff #33511)

Actually, hmmm... I guess this isn't always required, as I'm not seeing any errors after rebasing. Sorry for the distraction!