twilio-professional-services / flex-project-template

A starting point for Twilio Flex projects, providing management strategies for various types of artifacts and distributed development
https://twilio-professional-services.github.io/flex-project-template/
Apache License 2.0
63 stars 67 forks source link

Avoid unnecessary conference state updates #608

Closed dremin closed 1 month ago

dremin commented 1 month ago

Summary

The ParticipantActionsButtons component was creating state for every conference participant unnecessarily. Because SetComponentState merges updates, the state would grow quite large. Changed this to only set state when needed (when the kick buttons are clicked).

Removed code that tried to clean up the state, which doesn't work due to SetComponentState's merge logic.

Checklist

github-actions[bot] commented 1 month ago

0 ESLint error(s) and 0 ESLint warning(s) found in pull request changed files. :white_check_mark: No issues found!