This diff introduces the removeCommunityActionType and the logic for this action in the community reducer
Linear task: https://linear.app/comm/issue/ENG-6579/introduce-removing-a-community-from-the-community-store-action
Depends on D11167
Paths
| Differential D11192 Authored by ginsu on Feb 28 2024, 12:24 AM.
Details Summary This diff introduces the removeCommunityActionType and the logic for this action in the community reducer Linear task: https://linear.app/comm/issue/ENG-6579/introduce-removing-a-community-from-the-community-store-action Depends on D11167 Test Plan Ran the following code + confirmed that the community was being removed const fakeCommunityID = '256|84261'; const onPressRemoveCommunity = React.useCallback(() => { dispatch({ type: removeCommunityActionType, payload: { id: fakeCommunityID, }, }); }, [dispatch]);
Diff Detail
Event TimelineHerald added subscribers: tomek, ashoat. · View Herald TranscriptFeb 28 2024, 12:24 AM2024-02-28 00:24:04 (UTC-8) ginsu edited the summary of this revision. (Show Details)Feb 28 2024, 12:26 AM2024-02-28 00:26:25 (UTC-8) Harbormaster returned this revision to the author for changes because remote builds failed.Feb 28 2024, 12:35 AM2024-02-28 00:35:52 (UTC-8) This revision is now accepted and ready to land.Feb 29 2024, 6:39 AM2024-02-29 06:39:07 (UTC-8)
Revision Contents
Diff 37681 lib/actions/community-actions.js
lib/reducers/community-reducer.js
lib/types/community-types.js
|