Error
Error renders the errors returned by the REST API, e.g. 4xx or 5xx.
The component is not displayed while executing the search query or if there is no error.
Usage
<Error />
Usage when overriding
const MyError = ({ error }) => {
...
}
const overriddenComponents = {
"Error.element": MyError
};
Parameters
error
ObjectThe current value of the
errorresultsstate, containing the error returned by the search API connector.