Ruben
TTCTheo's Typesafe Cult
•Created by Ruben on 5/13/2023 in #questions
Creating an update mutation with tRPC
Hi everyone, I'm trying to use an update mutation in this way:
But when trying to call it here:
I get squiggly lines under
id: myId
saying the following:
It seemed to me that I was supposed to use the useMutation in the same way as UseQuery, but this does not seem to work. Anyone know how this is supposed to be done? My apologies if this is a nooby question, I am quite new to web development2 replies