tRPCttRPC
Powered by
2035Builder2
tRPC•2y ago•
2 replies
2035Builder

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
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

TypeError: queryClient.getMutationDefaults is not a function (it is undefined)
tmy03Ttmy03 / ❓-help
3y ago
TypeError: cache is not a function
danyDdany / ❓-help
2y ago
TypeError: client[procedureType] is not a function
emilEemil / ❓-help
3y ago