Abort serch requests on unmount

This commit is contained in:
Jack Kingsman
2026-03-11 19:26:27 -07:00
parent 4363fd2a73
commit 2e705538fd
2 changed files with 37 additions and 0 deletions
+6
View File
@@ -123,6 +123,12 @@ export function SearchView({
inputRef.current?.focus();
}, [prefillRequest]);
useEffect(() => {
return () => {
abortRef.current?.abort();
};
}, []);
// Fetch search results
useEffect(() => {
if (!debouncedQuery) {