Unable to Retrieve Data from useMutation Call Despite Successful Internal Fetch
I'm encountering an issue with tRPC (mostly from my side as I'm a newbie with tRPC), where the
useMutation
query returns undefined
for data when called with new input. However, the data is successfully retrieved internally, as confirmed by tRPC's debugging console itself, and an onSuccess
call within the useMutation variable.
I'm not sure how I can properly retrieve the data (as tRPC has been challenging for me to accommodate to :P), so I would appreciate some help here
Front-End
Back-End
1 Reply
bump