issue: https://linear.app/comm/issue/ENG-5652/inline-reducedevicetoken
See the deleted file for how it worked before
Details
Details
- Reviewers
michal kamil ginsu - Commits
- rCOMM0dafbd55dc7b: [lib] Inline reduceDeviceToken
Dispatched incrementalStateSyncActionType, setDeviceTokenActionTypes actions, chcked that the state changes as expected
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
lib/reducers/keyserver-reducer.js | ||
---|---|---|
330 ↗ | (On Diff #33203) | Nit: does this work? |
lib/reducers/keyserver-reducer.js | ||
---|---|---|
330 ↗ | (On Diff #33203) | No. This is a trick to strip KeyserverInfos of read-only on fileds, so that we can do the assignment in line 332. Otherwise we get a flow error: Cannot assign object literal to `keyserverInfos[keyserverID]` because an index signature declaring the expected key / value type is not writable.Flow(cannot-write) |
lib/reducers/keyserver-reducer.js | ||
---|---|---|
137 | Nit: shorthand |