Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 1a596e5

Browse files
committed
Fix console error #473
1 parent 2e81b6b commit 1a596e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/src/pages/Search/Global.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ export default function SearchGlobal({ keyword }) {
266266
setTotalPages(Number(headers["x-total-pages"]));
267267
}
268268
})();
269+
270+
return () => source.cancel();
269271
// eslint-disable-next-line react-hooks/exhaustive-deps
270272
}, [isLoading, isAuthenticated, keyword, orderBy, searchContext]);
271273

0 commit comments

Comments
 (0)