Page MenuHomePhabricator

D3887.id12135.diff
No OneTemporary

D3887.id12135.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
Fri, Nov 29, 1:13 PM (20 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2597102
Default Alt Text
D3887.id12135.diff (519 B)

Event Timeline