useFilters
This simple hook can be used to clear all applied filters.
const { clearAllFilters } = useFilters()
Example
function ClearFilters() {
const { clearAllFilters } = useFilters()
return (
<button onClick={clearAllFilters}>Clear all active filters</button>
)
}