useCurrentRefinements hook provides the logic to build a custom component that displays all currently active refinements and allows users to remove them.
Import
Parameters
The attributes to include in the refinements list. Cannot be used with
excludedAttributes.The attributes to exclude from the refinements list. Cannot be used with
includedAttributes.Function to transform the items.
Returns
The list of current refinements grouped by attribute.
Function to remove a specific refinement.
Whether there are any refinements that can be removed.
Function to create a URL for removing a refinement.