How to use the @shopgate/engage/filter.buildInitialFilters function in @shopgate/engage

To help you get started, we’ve selected a few @shopgate/engage 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 shopgate / pwa / themes / theme-ios11 / pages / Filter / components / Content / index.jsx View on Github external
constructor(props) {
    super(props);

    this.initialFilters = buildInitialFilters(props.filters, props.activeFilters);
    this.state = {
      currentFilters: props.activeFilters || {},
      filters: {},
    };
  }
github shopgate / pwa / themes / theme-ios11 / pages / Filter / components / Content / index.jsx View on Github external
componentWillReceiveProps({ activeFilters, filters }) {
    if (Object.keys(this.initialFilters).length > 0) {
      return;
    }

    this.initialFilters = buildInitialFilters(filters, activeFilters);
  }
github shopgate / pwa / themes / theme-gmd / pages / Filter / components / Content / index.jsx View on Github external
reset = () => {
    this.initialFilters = buildInitialFilters(this.props.filters, {});
    this.setState({
      currentFilters: {},
      filters: {},
    });
  }
github shopgate / pwa / themes / theme-gmd / pages / Filter / components / Content / index.jsx View on Github external
constructor(props) {
    super(props);

    this.initialFilters = buildInitialFilters(props.filters, props.activeFilters);
    this.state = {
      currentFilters: props.activeFilters || {},
      filters: {},
    };
  }
github shopgate / pwa / themes / theme-gmd / pages / Filter / components / Content / index.jsx View on Github external
componentWillReceiveProps({ activeFilters, filters }) {
    if (Object.keys(this.initialFilters).length > 0) {
      return;
    }

    this.initialFilters = buildInitialFilters(filters, activeFilters);
  }
github shopgate / pwa / themes / theme-ios11 / pages / Filter / components / Content / index.jsx View on Github external
reset = () => {
    this.initialFilters = buildInitialFilters(this.props.filters, {});
    this.setState({
      currentFilters: {},
      filters: {},
    });
  }