Q: is there a way to reset all filter and facets p...
# community-help
a
Q: is there a way to reset all filter and facets programmatically? Basically the same functionality like clicking the button the clearRefinements widget?
d
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()