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)
Fri, Mar 7, 10:37 AM
Unknown Object (File)
Fri, Mar 7, 10:37 AM
Unknown Object (File)
Fri, Mar 7, 10:37 AM
Unknown Object (File)
Fri, Mar 7, 10:37 AM
Unknown Object (File)
Tue, Mar 4, 2:53 AM
Unknown Object (File)
Thu, Feb 27, 9:56 PM
Unknown Object (File)
Jan 19 2025, 2:27 PM
Unknown Object (File)
Dec 22 2024, 2:32 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