Refactor: Add dependencies to useEffect in Profile component
This commit is contained in:
@@ -66,7 +66,7 @@ const Profile = () => {
|
|||||||
} else {
|
} else {
|
||||||
console.error("Track ID is missing or invalid.");
|
console.error("Track ID is missing or invalid.");
|
||||||
}
|
}
|
||||||
}, []);
|
}, [mutation,query]);
|
||||||
|
|
||||||
const { data, isLoading, isFetching, error } = useQuery({
|
const { data, isLoading, isFetching, error } = useQuery({
|
||||||
queryKey: ["profile", mutation],
|
queryKey: ["profile", mutation],
|
||||||
|
|||||||
Reference in New Issue
Block a user