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
Differential D11192
[lib] introduce removeCommunityActionType ginsu on Feb 28 2024, 12:24 AM. Authored by Tags None Referenced Files
Details 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 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
|