Sigo
Sigo3mo ago

ERROR TypeError: queryClient.getMutationDefaults is not a function (it is undefined)

const { mutate: joinChallenge } = api.challenges.join.useMutation();
const handleJoinChallenge = () => {
};
joinChallenge({
challengeId: id,
});
};
const { mutate: joinChallenge } = api.challenges.join.useMutation();
const handleJoinChallenge = () => {
};
joinChallenge({
challengeId: id,
});
};
using version 10.45.2
1 Reply
Sigo
Sigo3mo ago
I found out the solution was a mismatch incase anyone is facing the issue.