Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3361960
D3887.id12154.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.id12154.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
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)
Attached To
Mode
D3887: [lib] [refactor] [ENG-530] add memo in inline sidebar hook
Attached
Detach File
Event Timeline
Log In to Comment