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
Details
Details
ran yarn flow all. Checked that resetUserStateActionType is not reduced anywhere else.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
native/redux/redux-setup.js | ||
---|---|---|
331–340 | This had to be moved here, because now we don't want to return from this if, we need to assign state and let it continue to baseReducer. And if we do that in the if else above, then flow is not sure about the action type and shows errors |