Page MenuHomePhabricator

[lib] Refactor baseReducer
ClosedPublic

Authored by inka on Nov 16 2023, 8:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 7:54 PM
Unknown Object (File)
Fri, Nov 22, 2:15 PM
Unknown Object (File)
Mon, Oct 28, 12:14 AM
Unknown Object (File)
Oct 22 2024, 3:36 AM
Unknown Object (File)
Oct 20 2024, 9:13 AM
Unknown Object (File)
Oct 19 2024, 10:54 PM
Unknown Object (File)
Oct 12 2024, 2:37 AM
Unknown Object (File)
Oct 6 2024, 3:28 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!