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>