Page MenuHomePhabricator

D9213.id31185.diff
No OneTemporary

D9213.id31185.diff

diff --git a/native/components/thread-ancestors-label.react.js b/native/components/thread-ancestors-label.react.js
--- a/native/components/thread-ancestors-label.react.js
+++ b/native/components/thread-ancestors-label.react.js
@@ -50,11 +50,16 @@
return unread ? [styles.pathText, styles.unread] : styles.pathText;
}, [styles.pathText, styles.unread, unread]);
- return (
- <Text numberOfLines={1} style={ancestorPathStyle}>
- {ancestorPath}
- </Text>
+ const threadAncestorsLabel = React.useMemo(
+ () => (
+ <Text numberOfLines={1} style={ancestorPathStyle}>
+ {ancestorPath}
+ </Text>
+ ),
+ [ancestorPath, ancestorPathStyle],
);
+
+ return threadAncestorsLabel;
}
const unboundStyles = {

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 9:29 AM (21 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2579185
Default Alt Text
D9213.id31185.diff (750 B)

Event Timeline