T
TanStack3y ago
like-gold

Is there a way to force logging of errors in production?

I'm using zod to parse axios responses but in production, it simply fails and neither Zod nor axios logs anything about the failure
2 Replies
other-emerald
other-emerald3y ago
FYI, we're removing the logging of failed queries in dev mode in v5, too. I'd implement a global onError handler on the QueryCache and log all zodErrors there
like-gold
like-goldOP3y ago
Thanks!

Did you find this page helpful?