@samitouri / QOS-React / commits / c813c82e45

More consistent hashing (#10561)

Dan Abramov committed Aug 28, 2017 at 16:39 UTC c813c82e45ce387d1f714502e55426aa2282434d
1 file changed +10 -2
fixtures/attribute-behavior/src/App.js
+10 -2
@@ -2638,8 +2638,16 @@ for (let attribute of attributes) {
2638 for (let type of types) {
2639 const result = getRenderedAttributeValues(attribute, type);
2640 row.set(type.name, result);
2641 - rowHash +=
2642 - result.react15.canonicalResult + '||' + result.react16.canonicalResult;
2641 + rowHash += [result.react15, result.react16]
2642 + .map(res =>
2643 + [
2644 + res.canonicalResult,
2645 + res.canonicalDefaultValue,
2646 + res.didWarn,
2647 + res.didError,
2648 + ].join('||')
2649 + )
2650 + .join('||');
2651 }
2652 table.set(attribute, row);
2653 if (!groupByRowPattern.get(rowHash)) {