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
Object
The current value of the
error
results
state, containing the error returned by the search API connector.