Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32534876
D3887.1767158285.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
519 B
Referenced Files
None
Subscribers
None
D3887.1767158285.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 31, 5:18 AM (17 m, 12 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5872145
Default Alt Text
D3887.1767158285.diff (519 B)
Attached To
Mode
D3887: [lib] [refactor] [ENG-530] add memo in inline sidebar hook
Attached
Detach File
Event Timeline
Log In to Comment