Closed Talos6 closed 5 years ago
Currently, SongLog relies on currentGroup in redux. So when adding a group member, we should either update currentGroup in redux store, or we could add another subscription to SongLog and store only the groupId in redux. Which do you think is better?
Also just a suggestion, I think leaveGroup/deleteGroup should check if the group left/deleted is the current group before setting it to null. Since we have access to the current state and the groupId left/deleted, we could do a simple if check here in the action instead of letting GroupButton set the default group and trigger a bunch of re-rendering.