Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3519515
D13730.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
999 B
Referenced Files
None
Subscribers
None
D13730.diff
View Options
diff --git a/web/chat/thread-list-provider.js b/web/chat/thread-list-provider.js
--- a/web/chat/thread-list-provider.js
+++ b/web/chat/thread-list-provider.js
@@ -179,13 +179,24 @@
);
const threadFilter =
activeTab === 'Muted' ? threadInBackgroundChatList : threadInHomeChatList;
- const chatListDataWithoutFilter = getThreadListSearchResults(
- chatListData,
- searchText,
- threadFilter,
- threadSearchResults,
- usersSearchResults,
- loggedInUserInfo,
+ const chatListDataWithoutFilter = React.useMemo(
+ () =>
+ getThreadListSearchResults(
+ chatListData,
+ searchText,
+ threadFilter,
+ threadSearchResults,
+ usersSearchResults,
+ loggedInUserInfo,
+ ),
+ [
+ chatListData,
+ searchText,
+ threadFilter,
+ threadSearchResults,
+ usersSearchResults,
+ loggedInUserInfo,
+ ],
);
const activeTopLevelChatThreadItem = useChatThreadItem(
activeTopLevelThreadInfo,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 10:23 PM (16 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2696876
Default Alt Text
D13730.diff (999 B)
Attached To
Mode
D13730: [web] Memoize result of calling getThreadListSearchResults
Attached
Detach File
Event Timeline
Log In to Comment