[lib] Avoid regenerating holdersToRemove whenever Redux state changes
Summary:
This diff addresses ENG-9391: Maximum update depth exceeded.
The way this code was written, whenever the Redux state changed, holdersToRemove would be regenerated. This led to a React render loop.
Test Plan: Confirm that the React render cycle goes away
Reviewers: bartek, kamil, tomek, varun, will
Reviewed By: varun
Differential Revision: https://phab.comm.dev/D13465