How to handle errors globally #168
-
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 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 Thank you in advance for your attention. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There should be an option once the Mutation store is more complete. That being said, mutations won't appear during the rendering phase, only queries. |
Beta Was this translation helpful? Give feedback.
There should be an option once the Mutation store is more complete. That being said, mutations won't appear during the rendering phase, only queries.
Regarding throwOnError,
refetch()
andrefresh()
also have that option as a direct parameter:refetch(true)