diff --git a/src/App.tsx b/src/App.tsx
index 17c22d3..f8ca5ff 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -55,7 +55,7 @@ function App() {
if (searchValue) search.mutate(searchValue);
else if (account.address) search.mutate(account.address);
else search.mutate("");
- }, [searchValue, account.address]);
+ }, [searchValue, search.mutate, account.address]);
return (
@@ -97,10 +97,10 @@ function App() {
)}
- {singleDeed && (
+ {singleDeed && reference.name && (
diff --git a/src/query/useDebouncedCallback.ts b/src/query/useDebouncedCallback.ts
index b9be9bd..1dfdd6b 100644
--- a/src/query/useDebouncedCallback.ts
+++ b/src/query/useDebouncedCallback.ts
@@ -1,10 +1,9 @@
import { type DependencyList, useCallback, useRef } from "react";
-export default function useDebouncedCallback ReturnType>(
- func: T,
- wait?: number,
- deps: DependencyList = [],
-): T {
+export default function useDebouncedCallback<
+ // biome-ignore lint/suspicious/noExplicitAny: intentional
+ T extends (...args: any[]) => ReturnType,
+>(func: T, wait?: number, deps: DependencyList = []): T {
const timerId = useRef>();
return useCallback(
diff --git a/src/query/useSimpleSearch.ts b/src/query/useSimpleSearch.ts
index db3c4b7..28cfb25 100644
--- a/src/query/useSimpleSearch.ts
+++ b/src/query/useSimpleSearch.ts
@@ -94,8 +94,7 @@ export const useSimpleSearch = (options: Options = {}) => {
return () => {
queryClient.removeQueries({ queryKey: ["simpleSearch"], exact: false });
};
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, []);
+ }, [queryClient]);
const { mutate, isPending, ...rest } = useMutation({
mutationFn: async (query: string) => {