How to customize onCatch CatchBoundary handler? #1488
Replies: 2 comments 1 reply
-
You can get all errors for a route via the onError option which takes a function that receives the error. You must rethrow the error if you want TanStack Router to keep handling it!
…On Apr 18, 2024 at 7:18 PM -0600, Bruno Pinto ***@***.***>, wrote:
It's possible to configure a custom error component per route (or a default error component) but how can I customise the onCatch function? My use case is for notifying (sending a request) to my error reporting tool whenever an error occurs.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bpinto
-
Thank you! I somehow missed this option. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It's possible to configure a custom error component per route (or a default error component) but how can I customise the
onCatch
function? My use case is for notifying (sending a request) to my error reporting tool whenever an error occurs.Beta Was this translation helpful? Give feedback.
All reactions