matthoffner commited on
Commit
c096cf6
·
1 Parent(s): 045bff2

Update src/app/search/web/page.jsx

Browse files
Files changed (1) hide show
  1. src/app/search/web/page.jsx +1 -1
src/app/search/web/page.jsx CHANGED
@@ -21,7 +21,7 @@ export default function WebSearchPage({ searchParams }) {
21
  return () => {
22
  if (es) es.close(); // Close the EventSource when the component is unmounted.
23
  };
24
- }, [searchParams]);
25
 
26
  // Add event listener for the EventSource
27
  useEffect(() => {
 
21
  return () => {
22
  if (es) es.close(); // Close the EventSource when the component is unmounted.
23
  };
24
+ }, [searchParams, searchTerm]);
25
 
26
  // Add event listener for the EventSource
27
  useEffect(() => {