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
F3351379: D12027.id40150.diff
Sat, Nov 23, 1:18 AM
Unknown Object (File)
Fri, Nov 15, 6:10 AM
Unknown Object (File)
Thu, Nov 14, 3:54 PM
Unknown Object (File)
Thu, Nov 14, 3:53 PM
Unknown Object (File)
Thu, Nov 7, 8:56 AM
Unknown Object (File)
Thu, Nov 7, 12:03 AM
Unknown Object (File)
Sat, Nov 2, 1:21 AM
Unknown Object (File)
Sat, Nov 2, 1:21 AM
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