HomePhabricator
Diffusion Comm 8ea434915603

[native, lib] Move resetUserStateActionType to lib

Description

[native, lib] Move resetUserStateActionType to lib

Summary:
As mentioned in https://linear.app/comm/issue/ENG-4377/refactor-cookie-field-in-web-redux I need to move resetUserStateActionType to lib, because the cookie filed will be in the KesyerveStore, that will be in BaseAppState, so it makes
sense it be reduced by a reducer from lib. And resetUserStateActionType influences the cookie field in redux-setup.js. Since the action will now be in lib, we can move the logic that reduces CurrentUserInfo when this action is called
to lib as well

Test Plan: ran yarn flow all. Checked that resetUserStateActionType is not reduced anywhere else.

Reviewers: michal, kamil

Reviewed By: michal

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D8531

Details

Provenance
inkaAuthored on Jul 13 2023, 7:12 AM
Reviewer
michal
Differential Revision
D8531: [native, lib] Move resetUserStateActionType to lib
Parents
rCOMM548b55accac2: [blob-service] Add S3 helpers, improve logs
Branches
Unknown
Tags
Unknown