Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3736939
D14078.id46212.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
786 B
Referenced Files
None
Subscribers
None
D14078.id46212.diff
View Options
diff --git a/native/profile/profile-screen.react.js b/native/profile/profile-screen.react.js
--- a/native/profile/profile-screen.react.js
+++ b/native/profile/profile-screen.react.js
@@ -576,9 +576,13 @@
const checkIfPrimaryDevice = useCheckIfPrimaryDevice();
const showVersionUnsupportedAlert = useShowVersionUnsupportedAlert(false);
- const callLogOut = useLogOut({
- handleUseNewFlowResponse: showVersionUnsupportedAlert,
- });
+ const logOutOptions = React.useMemo(
+ () => ({
+ handleUseNewFlowResponse: showVersionUnsupportedAlert,
+ }),
+ [showVersionUnsupportedAlert],
+ );
+ const callLogOut = useLogOut(logOutOptions);
const userID = useSelector(
state => state.currentUserInfo && state.currentUserInfo.id,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 10, 7:03 AM (22 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2845864
Default Alt Text
D14078.id46212.diff (786 B)
Attached To
Mode
D14078: [native] Memoize logOutOptions
Attached
Detach File
Event Timeline
Log In to Comment