Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeyens committed Jan 26, 2025
1 parent daa31c3 commit 796e41d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thin-cheetahs-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@udecode/plate-tag': patch
---

Fix useSelectEditorCombobox infinite re-rendering
3 changes: 2 additions & 1 deletion packages/tag/src/react/useSelectEditorCombobox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ export const useSelectEditorCombobox = ({

React.useEffect(() => {
onValueChange?.(selectedItems);
}, [selectedItems, onValueChange]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [selectedItems]);
};

0 comments on commit 796e41d

Please sign in to comment.