Page MenuHomePhabricator

D3887.id12154.diff
No OneTemporary

D3887.id12154.diff

diff --git a/lib/hooks/inline-sidebar-text.react.js b/lib/hooks/inline-sidebar-text.react.js
--- a/lib/hooks/inline-sidebar-text.react.js
+++ b/lib/hooks/inline-sidebar-text.react.js
@@ -29,7 +29,13 @@
return senders.length > 0 ? `${pluralizeAndTrim(senders, 25)} sent ` : '';
}, [threadMembers]);
- return { sendersText, repliesText };
+ return React.useMemo(
+ () => ({
+ sendersText,
+ repliesText,
+ }),
+ [sendersText, repliesText],
+ );
}
export default useInlineSidebarText;

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 8:38 PM (20 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2580757
Default Alt Text
D3887.id12154.diff (519 B)

Event Timeline