Page MenuHomePhabricator

[web][native] Refactor reset state logic in reducers
ClosedPublic

Authored by tomek on Apr 3 2024, 3:27 AM.
Tags
None
Referenced Files
F1864421: D11532.diff
Sun, May 26, 8:03 AM
Unknown Object (File)
Mon, May 20, 12:20 AM
Unknown Object (File)
Mon, May 20, 12:20 AM
Unknown Object (File)
Mon, May 20, 12:20 AM
Unknown Object (File)
Mon, May 20, 12:20 AM
Unknown Object (File)
Apr 17 2024, 3:25 PM
Unknown Object (File)
Apr 16 2024, 10:33 AM
Unknown Object (File)
Apr 13 2024, 7:58 PM
Subscribers

Details

Summary

This refactoring shouldn't affect the logic. The purpose is to simplify the code so that we reset the state in a single place - it makes the following diff easier to understand.

https://linear.app/comm/issue/ENG-7075/clear-redux-state-only-when-current-user-id-changes

Test Plan

Checked if logging out clears the Redux state.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable