Skip to content

Commit 7ce2e8f

Browse files
author
heweikang
committed
resolve a warning
1 parent fd1c656 commit 7ce2e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/search-chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function SearchChatPage() {
8383

8484
// Cleanup the interval on component unmount
8585
return () => clearInterval(intervalId);
86-
}, []);
86+
}, [doSearch]);
8787

8888
return (
8989
<ErrorBoundary>

0 commit comments

Comments
 (0)