In my React/Redux application I have custom group objects. I want to have a page which displays a summary list of all groups alongside a detailed view of the currently selected group (which defaults to the first group in the list). I need to request a list of groups (/groups) from my rest api, get the id of the first group (from the store?) and set that to be the selected group and then make a get request to return a list of members of the selected group (/groups/${id}/members)
I'm very new to React/Redux and I'm not sure how to go about coding this. Should I write this as 3 separate actions and can I make a react component call these actions using the results from the previous action? Or should I place the logic for this in a combined action handler using thunk middleware? How would I write such an action handler in that case?
componentWillMounteventhandler of a group component? Where as the groups would simply show a list of the group components