Fabric: Computed attributed string caching inside <Paragraph>

Summary:
@public
Quite trivial. We had to have this from the day one.
We don't need cache invalidation policy because all subtree is immutable.

Reviewed By: mdvacca

Differential Revision: D8709973

fbshipit-source-id: bd7fcf0ae1dcb23894321cb5d16da18cb1ab788f
This commit is contained in:
Valentin Shergin authored and Facebook Github Bot committed 2018-07-15 16:52:26 -07:00
1 parent 0532e01d69
commit 2c28310267
4 files changed
+13 -4

No files matched your search

@@ -20,8 +20,6 @@ AttributedString BaseTextShadowNode::getAttributedString(
const TextAttributes &textAttributes,
const SharedShadowNodeSharedList &childNodes
) const {
// TODO: Implement caching.
AttributedString attributedString;
for (const auto &childNode : *childNodes) {