Skip to content

Commit

Permalink
More consistent hashing (#10561)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Aug 28, 2017
1 parent ed0ceb4 commit c813c82
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions fixtures/attribute-behavior/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2638,8 +2638,16 @@ for (let attribute of attributes) {
for (let type of types) {
const result = getRenderedAttributeValues(attribute, type);
row.set(type.name, result);
rowHash +=
result.react15.canonicalResult + '||' + result.react16.canonicalResult;
rowHash += [result.react15, result.react16]
.map(res =>
[
res.canonicalResult,
res.canonicalDefaultValue,
res.didWarn,
res.didError,
].join('||')
)
.join('||');
}
table.set(attribute, row);
if (!groupByRowPattern.get(rowHash)) {
Expand Down

0 comments on commit c813c82

Please sign in to comment.