Join Slack
Powered by
Q: is there a way to reset all filter and facets p...
# community-help
a
A J
04/13/2024, 1:43 PM
Q: is there a way to reset all filter and facets programmatically? Basically the same functionality like clicking the button the clearRefinements widget?
d
Dima
04/14/2024, 3:20 PM
Sure, through hooks API:
https://www.algolia.com/doc/api-reference/widgets/clear-refinements/react/#hook-api
Copy code
const { canRefine, refine } = useClearRefinements(props); refine()
Open in Slack
Previous
Next