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
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
Unknown Object (File)
Apr 10 2024, 1:20 PM
Unknown Object (File)
Apr 8 2024, 12:19 PM
Unknown Object (File)
Apr 8 2024, 11:55 AM
Unknown Object (File)
Apr 7 2024, 6:44 PM
Unknown Object (File)
Apr 3 2024, 3:57 AM
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