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, Jun 20, 11:26 PM
Unknown Object (File)
Thu, Jun 20, 12:20 PM
Unknown Object (File)
Wed, Jun 19, 9:49 AM
Unknown Object (File)
Mon, Jun 17, 10:30 PM
Unknown Object (File)
Mon, Jun 17, 10:29 PM
Unknown Object (File)
Sat, Jun 15, 12:39 AM
Unknown Object (File)
Fri, Jun 14, 5:56 AM
Unknown Object (File)
Sun, Jun 9, 11:46 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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek added inline comments.
lib/reducers/community-reducer.js
32–35 ↗(On Diff #40150)

We can avoid repeated spreading

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