Page MenuHomePhorge

D13874.1765328077.diff
No OneTemporary

Size
547 B
Referenced Files
None
Subscribers
None

D13874.1765328077.diff

diff --git a/lib/shared/thread-utils.js b/lib/shared/thread-utils.js
--- a/lib/shared/thread-utils.js
+++ b/lib/shared/thread-utils.js
@@ -227,10 +227,11 @@
threadInfo: ?ThreadInfo,
permission: ThreadPermission,
): boolean {
- const threads = useThreadsWithPermission(
- threadInfo ? [threadInfo] : [],
- permission,
+ const threadInfos = React.useMemo(
+ () => (threadInfo ? [threadInfo] : []),
+ [threadInfo],
);
+ const threads = useThreadsWithPermission(threadInfos, permission);
return threads.length === 1;
}

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 10, 12:54 AM (16 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5859428
Default Alt Text
D13874.1765328077.diff (547 B)

Event Timeline