EmptyResults
EmptyResults is a component that renders in case of 0 results.
The component is not displayed while executing the search query, when there is no error or when the number of results is greater than 0.
Usage
<EmptyResults />
Props
overridableId
StringoptionalAn optional string to define a specific overridable id.
Usage when overriding
const MyEmptyResults = ({ queryString, resetQuery, extraContent }) => {
...
}
const overriddenComponents = {
"EmptyResults.element": MyEmptyResults
};
Parameters
queryString
StringThe current value of the
queryStringquerystate.resetQuery
FunctionA function to call to reset the current search query.
extraContent
React componentAny extra React component to be rendered.
userSelectionFilters
ArrayList of the currently selected filters.