Page MenuHomePhabricator

[lib] update community reducer to handle new community action types
ClosedPublic

Authored by ginsu on May 13 2024, 11:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 11, 8:39 AM
Unknown Object (File)
Wed, Sep 11, 6:58 AM
Unknown Object (File)
Tue, Sep 10, 10:37 PM
Unknown Object (File)
Tue, Sep 10, 9:39 PM
Unknown Object (File)
Mon, Sep 9, 5:18 PM
Unknown Object (File)
Thu, Sep 5, 3:24 AM
Unknown Object (File)
Wed, Sep 4, 5:22 AM
Unknown Object (File)
Tue, Sep 3, 8:36 PM
Subscribers

Details

Summary

Earlier in this stack we introduced three new community actions: fetchCommunityInfosActionTypes, createOrUpdateFarcasterChannelTagActionTypes and deleteFarcasterChannelTagActionTypes.

As part of introducing redux actions, we also need to introduce the redux reducer logic for each action type.

Depends on D12025

Test Plan

Tested each action individually, and confirmed using the redux dev tools that I was getting the correct payload + updated state

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek added inline comments.
lib/reducers/community-reducer.js
32–35

We can avoid repeated spreading

This revision is now accepted and ready to land.May 14 2024, 3:36 AM