Skip to content

Commit

Permalink
fix: Reassure Performance Tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Gupta <[email protected]>
  • Loading branch information
Krishna2323 committed Apr 5, 2024
1 parent c295c21 commit 2a3bc3f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/components/SelectionList/BaseSelectionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -409,15 +409,8 @@ function BaseSelectionList<TItem extends ListItem>(
setCurrentPage(1);

updateAndScrollToFocusedIndex(newSelectedIndex);
}, [
canSelectMultiple,
flattenedSections.allOptions.length,
flattenedSections.selectedOptions.length,
prevTextInputValue,
textInputValue,
updateAndScrollToFocusedIndex,
prevSelectedOptions,
]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [canSelectMultiple, flattenedSections.allOptions.length, flattenedSections.selectedOptions.length, prevTextInputValue, textInputValue, updateAndScrollToFocusedIndex]);

useEffect(
() => () => {
Expand Down

0 comments on commit 2a3bc3f

Please sign in to comment.