Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3383045
D3887.id12135.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
519 B
Referenced Files
None
Subscribers
None
D3887.id12135.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
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)
Attached To
Mode
D3887: [lib] [refactor] [ENG-530] add memo in inline sidebar hook
Attached
Detach File
Event Timeline
Log In to Comment