How to handle errors globally #168
Unanswered
PaulaWiltiner
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm Paula!
I would like to better understand how I can handle errors globally using @pinia/colada. I know that for queries, the
PiniaColadaQueryHooksPlugin
helps to handle errors caught by queries globally. But what about mutations? Is there any configuration in Vue that I can do to handle errors caught by both queries and mutations?Ideally I needed that errors are generated in the rendering phase and propagate to the nearest error boundary. For example, in the tan-stack query we can pass
throwOnError: true
.Thank you in advance for your attention.
Best regards,
Paula
Beta Was this translation helpful? Give feedback.
All reactions