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)
Wed, Apr 17, 3:25 PM
Unknown Object (File)
Tue, Apr 16, 10:33 AM
Unknown Object (File)
Sat, Apr 13, 7:58 PM
Unknown Object (File)
Wed, Apr 10, 1:20 PM
Unknown Object (File)
Mon, Apr 8, 12:19 PM
Unknown Object (File)
Mon, Apr 8, 11:55 AM
Unknown Object (File)
Sun, Apr 7, 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