use react::hash_combine instead of folly::hash_combine (#41477)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41477

changelog: [internal]

Reviewed By: cipolleschi

Differential Revision: D51304535

fbshipit-source-id: d7de89c50e30a936b982c5dc568f3516ab140266
This commit is contained in:
Samuel Susla
2023-11-14 07:24:55 -08:00
committed by Facebook GitHub Bot
parent 5948ab7515
commit 3e3a3dbe28
@@ -146,10 +146,8 @@ inline size_t textAttributesHashLayoutWise(
// Here we are not taking `isAttachment` and `layoutMetrics` into account
// because they are logically interdependent and this can break an invariant
// between hash and equivalence functions (and cause cache misses).
return folly::hash::hash_combine(
0,
fragment.string,
textAttributesHashLayoutWise(fragment.textAttributes));
return facebook::react::hash_combine(
fragment.string, textAttributesHashLayoutWise(fragment.textAttributes));
}
inline bool areAttributedStringsEquivalentLayoutWise(