How to use the react-instantsearch-dom.connectCurrentRefinements function in react-instantsearch-dom

To help you get started, we’ve selected a few react-instantsearch-dom examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github algolia / react-instantsearch / examples / e-commerce / widgets / ClearFiltersMobile.js View on Github external
function onClick() {
    refine(items);
    document.body.classList.remove('filtering');
    containerRef.current.scrollIntoView();
  }

  return (
    <div>
      <button>
        Reset filters
      </button>
    </div>
  );
};

export default connectCurrentRefinements(ClearFiltersMobile);
github algolia / react-instantsearch / website / examples / material-ui / App.js View on Github external
);
}

const ConnectedSearchBox = connectSearchBox(MaterialUiSearchBox);

const ConnectedCheckBoxRefinementList = connectRefinementList(
  MaterialUiCheckBoxRefinementList
);

const ConnectedNestedList = connectHierarchicalMenu(MaterialUiNestedList);

const ConnectedSortBy = connectSortBy(MaterialUiSortBy);

const ConnectedHits = connectInfiniteHits(CustomHits);

const ConnectedCurrentRefinements = connectCurrentRefinements(
  MaterialUiClearAllFilters
);

export default withURLSync(App);