verbal-limeV
Refine3y ago
10 replies
verbal-lime

Setting custom error notification for data provider

Does anyone know how to set a custom notification message and description when the data provider throws an error?

The docs say that If you have notificationProvider, Refine will automatically show a notification when an error occurs . You can kinda customize that message with the HTTPError, but only the description and the status code. The message still looks something likes this:

Error: (Status Code XXX)
Custom message

I want to fully customize the title and description. To look something like this:

Custom error title
Custom error message

Thanks!
Data is essential for any UI Application and these applications are a bridge between users and the underlying data source(s), making it possible for users to interact with data in a meaningful way.
Data Fetching | refine
Was this page helpful?