TanStackT
TanStack10mo ago
7 replies
rubber-blue

Query & Mutation Error Handling with Notifications/Toasts

Hi all.

I've been away from Tanstack Query ( read - last used v4 ) and I'm just looking to handle errors the best recommended way.

I'm reading up on throwing up notifications. ( MUI Toolpads Notification API ) is being used as the display API on the client and I've got to use translated errors ( i18n ).

I would use the query-cache-callbacks but the MUI API is a component based hook.

So any info or pointers would help,

Cheers from Croatia!
Was this page helpful?