Skip to content

Commit 56cdc86

Browse files
committed
📝 Add disclaimer for empty dep array
1 parent c2b8cef commit 56cdc86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

static/app/components/searchQueryBuilder/tokens/filter/valueListBox.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export function ValueListBox<T extends SelectOptionOrSectionWithKey<string>>({
126126
return () => {
127127
observer.disconnect();
128128
};
129+
// all deps are refs but because they're props, the linter complains
129130
}, []); // eslint-disable-line react-hooks/exhaustive-deps
130131

131132
if (!isOpen || (!anyItemsShowing && !isLoading)) {

0 commit comments

Comments
 (0)