Explorar el Código

resolve a warning

heweikang hace 1 año
padre
commit
7ce2e8f4c4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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>