From 9e774a2d6f04fff6d36b3aa00e5958f5dbaf382e Mon Sep 17 00:00:00 2001 From: ALi Josheghani Date: Mon, 16 Sep 2024 12:43:04 +0330 Subject: [PATCH] Refactor: Remove unnecessary dependency in Profile component --- src/pages/profile/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/profile/index.tsx b/src/pages/profile/index.tsx index 7a44968..5c64bd8 100644 --- a/src/pages/profile/index.tsx +++ b/src/pages/profile/index.tsx @@ -66,7 +66,7 @@ const Profile = () => { } else { console.error("Track ID is missing or invalid."); } - }, [mutation,query]); + }, []); const { data, isLoading, isFetching, error } = useQuery({ queryKey: ["profile", mutation],