mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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:
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) {
|
||||
|
||||
Reference in new issue
Block a user