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
F3378977: D11532.diff
Wed, Nov 27, 2:27 PM
Unknown Object (File)
Mon, Nov 25, 11:51 PM
Unknown Object (File)
Sun, Nov 3, 11:23 AM
Unknown Object (File)
Oct 13 2024, 12:07 AM
Unknown Object (File)
Oct 13 2024, 12:07 AM
Unknown Object (File)
Oct 13 2024, 12:07 AM
Unknown Object (File)
Oct 13 2024, 12:06 AM
Unknown Object (File)
Sep 22 2024, 12:58 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
No Lint Coverage
Unit
No Test Coverage