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)
Thu, Dec 19, 8:46 AM
Unknown Object (File)
Thu, Dec 19, 8:46 AM
Unknown Object (File)
Thu, Dec 19, 8:46 AM
Unknown Object (File)
Thu, Dec 19, 8:46 AM
Unknown Object (File)
Thu, Dec 19, 8:45 AM
Unknown Object (File)
Thu, Dec 19, 8:45 AM
Unknown Object (File)
Fri, Dec 6, 1:15 AM
Unknown Object (File)
Fri, Nov 29, 10:57 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