Skip to content

Commit a36cb97

Browse files
authored
Remove useEffect post-merge
1 parent acea745 commit a36cb97

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/SelectPanel/SelectPanel.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ export function SelectPanel({
8686
)
8787

8888
const [finalItemsSelected, setFinalItemsSelected] = useState(selectedItems)
89-
React.useEffect(() => setFinalItemsSelected(selectedItems), [selectedItems])
9089

9190
// Refresh the selected items state when the prop changes.
9291
// This is necessary because sometimes the selected items need to be fetched async.

0 commit comments

Comments
 (0)