We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc11d86 commit 2e7bf8aCopy full SHA for 2e7bf8a
src/components/Hits.js
@@ -1,19 +1,10 @@
1
import React from 'react';
2
import map from 'lodash/collection/map';
3
-
4
import Template from './Template.js';
5
6
import hasKey from 'lodash/object/has';
7
-import isEqual from 'lodash/lang/isEqual';
8
import cx from 'classnames';
9
10
class Hits extends React.Component {
11
- shouldComponentUpdate(nextProps) {
12
- return this.props.results.hits.length === 0 ||
13
- this.props.results.hits.length !== nextProps.results.hits.length ||
14
- !isEqual(this.props.results.hits, nextProps.results.hits);
15
- }
16
17
renderWithResults() {
18
let renderedHits = map(this.props.results.hits, (hit, position) => {
19
let data = {
0 commit comments