useFilters

This simple hook can be used to clear all applied filters.

Copy
Copied
const { clearAllFilters } = useFilters()

Example

Copy
Copied
function ClearFilters() {
  const { clearAllFilters } = useFilters()


  return (
    <button onClick={clearAllFilters}>Clear all active filters</button>
  )
}
Copyright © Norce 2023. All right reserved.