t
tRPC
t
tRPC
Handling errors thrown on server in client.
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
W
wleistra
•
3/15/23, 9:41 PM
Check the tanstack
/react
-query docs for the onError property
/option that you can specify on the useMutation and useQuery
. I think that may be the place where it is throwing
. Before it gets to your useEffect
.
N
Nick
•
3/15/23, 11:11 PM
Network errors always show up in the browser console
, that
's fine
N
Nick
•
3/15/23, 11:12 PM
"PROBLEM
" is printing out
, proving that you
've
'handled
' the error
Handling errors thrown on server in client. - tRPC