correct way to handle errors run time errors
I want to handle errors, for example when executing this mutation an error appears
server router

5 Replies
the toast is working but at the same time i get an error
You could try the approach I posted here a few days ago:
https://discord.com/channels/867764511159091230/1337500157398355968/1337508102316232754
thanks for answering , actually i wonder if this error will be shown in production environement because in the bottom it's noted

How are you calling the mutation? I bet you're calling mutateAsync() in a event callback and not catching it, so the console log is correct
just use mutate() if you don't intend to handle the error in the callback
thank youu