Skip to content

Commit

Permalink
Merge pull request #7344 from alkem-io/vc-invite-perf-fix
Browse files Browse the repository at this point in the history
fix performance rerender issue caused by array dependency
  • Loading branch information
reactoholic authored Dec 17, 2024
2 parents c7a450f + 3ddc2ed commit 6d6d366
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const InviteVCsDialog = ({ open, onClose }: InviteContributorDialogProps) => {
// on memberVCs change, update the lists of VCs
useEffect(() => {
memoizedDebouncedFetchVCs();
}, [virtualContributors, memoizedDebouncedFetchVCs]);
}, [virtualContributors]); // do not add memoizedDebouncedFetchVCs in the dependencies

const getContributorsBoKProfile = async () => {
const vc = getContributorById(selectedVirtualContributorId);
Expand Down

0 comments on commit 6d6d366

Please sign in to comment.