Page MenuHomePhabricator

D3735.diff
No OneTemporary

D3735.diff

diff --git a/lib/hooks/relationship-prompt.js b/lib/hooks/relationship-prompt.js
--- a/lib/hooks/relationship-prompt.js
+++ b/lib/hooks/relationship-prompt.js
@@ -52,10 +52,13 @@
onErrorCallback,
);
- return {
- otherUserInfo,
- callbacks,
- };
+ return React.useMemo(
+ () => ({
+ otherUserInfo,
+ callbacks,
+ }),
+ [callbacks, otherUserInfo],
+ );
}
function useRelationshipCallbacks(

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 3, 11:47 AM (21 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2611572
Default Alt Text
D3735.diff (432 B)

Event Timeline