Refactor: Add dependencies to useEffect in Profile component
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user