2035Builder
2035Builder4mo 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
2035Builder
2035BuilderOP4mo ago
I found out the solution was a mismatch incase anyone is facing the issue.