@bytebrand/fe-ui-core 4.2.76 → 4.2.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.2.76",
3
+ "version": "4.2.77",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -3,6 +3,7 @@ import _get from 'lodash/get';
3
3
  import _startsWith from 'lodash/startsWith';
4
4
  import _debounce from 'lodash/debounce';
5
5
  import qs from 'qs';
6
+ import { isEqual } from 'lodash';
6
7
  import { checkRangeValuesOnEqual, getGroupValuesForQuery } from '../../../../framework/utils/CommonUtils';
7
8
  import { FilterBlockFactory } from '../../../SearchFilters/common/FilterBlock/FilterBlockFactory';
8
9
  import { FilterGroups, IFilters } from '../../../SearchFilters/FiltersFactory';
@@ -269,7 +270,6 @@ class FiltersContainer extends React.Component<IFiltersContainerProps, {}> {
269
270
  getMmsGroupsProps = (filter: string) => {
270
271
  const { filters } = this.props;
271
272
  const mmsGroups = filters[filter];
272
-
273
273
  return mmsGroups.map((filterGroup: any, index: number) => {
274
274
  const group: any = {};
275
275
 
@@ -387,7 +387,7 @@ class FiltersContainer extends React.Component<IFiltersContainerProps, {}> {
387
387
  error: isErrorAlternativeField,
388
388
  onChange: onAlternativeRedirect
389
389
  };
390
-
390
+ console.log('renderxxxxxxx', paramsFromQuery.autoDeId);
391
391
  return (
392
392
  <div className={styles.filters}>
393
393
  {isAlternative ? (
@@ -416,4 +416,12 @@ const removeUnknownOptions = (options: any) => {
416
416
  return options.filter((o: string) => o !== 'selector_unknown');
417
417
  };
418
418
 
419
- export default FiltersContainer;
419
+ // export default React.memo(FiltersContainer);
420
+
421
+ export default React.memo(FiltersContainer, (props, nextProps) => {
422
+ const { t, location, filters, aggregation } = props;
423
+ return t === nextProps.t &&
424
+ location.search === nextProps.location.search &&
425
+ isEqual(aggregation, nextProps.aggregation) &&
426
+ isEqual(filters.MMS_GROUPS, nextProps.filters.MMS_GROUPS)
427
+ });