Skip to content

Commit a0f54b8

Browse files
committed
fix: lint
1 parent 305de55 commit a0f54b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/OptionList.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ const OptionList: React.ForwardRefRenderFunction<ReviseRefOptionListProps> = (_,
263263
}
264264

265265
setActiveKey(nextActiveKey);
266+
// eslint-disable-next-line react-hooks/exhaustive-deps
266267
}, [open, searchValue]);
267268

268269
// ========================= Keyboard =========================
@@ -305,6 +306,7 @@ const OptionList: React.ForwardRefRenderFunction<ReviseRefOptionListProps> = (_,
305306

306307
const hasLoadDataFn = useMemo(
307308
() => (searchValue ? false : true),
309+
// eslint-disable-next-line react-hooks/exhaustive-deps
308310
[searchValue, treeExpandedKeys || expandedKeys],
309311
([preSearchValue], [nextSearchValue, nextExcludeSearchExpandedKeys]) =>
310312
preSearchValue !== nextSearchValue && !!(nextSearchValue || nextExcludeSearchExpandedKeys),

0 commit comments

Comments
 (0)