Forráskód Böngészése

resolve a warning

heweikang 1 éve
szülő
commit
7ce2e8f4c4
1 módosított fájl, 1 hozzáadás és 1 törlés
  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>