Where is the best place to add an error handler for the automatic notifications of success/error?
Hi guys, I have built a lot of things now and its time to add logic to the error notifications that are sent out automatically by refine.
I can't seem to find anything in the docs regarding the best place to add some logic so that the error messages are able to extract the correct data from the backend error messages. We are using a custom data provider, that connects to a laravel lighthouse graphql backend and the structure of the error messages is quite different from any other headless cms backend.
I am not sure if I should tweak the data provider to return friendly error messages with a specific structure or a custom notification provider to tweak the error messages?
Could you guys please share any info on this topic?
Thanks!
I can't seem to find anything in the docs regarding the best place to add some logic so that the error messages are able to extract the correct data from the backend error messages. We are using a custom data provider, that connects to a laravel lighthouse graphql backend and the structure of the error messages is quite different from any other headless cms backend.
I am not sure if I should tweak the data provider to return friendly error messages with a specific structure or a custom notification provider to tweak the error messages?
Could you guys please share any info on this topic?
Thanks!

