소스 검색

resolve a warning

heweikang 1 년 전
부모
커밋
7ce2e8f4c4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/components/search-chat.tsx

+ 1 - 1
app/components/search-chat.tsx

@@ -83,7 +83,7 @@ export function SearchChatPage() {
 
     // Cleanup the interval on component unmount
     return () => clearInterval(intervalId);
-  }, []);
+  }, [doSearch]);
 
   return (
     <ErrorBoundary>