Page MenuHomePhabricator

D14078.id46212.diff
No OneTemporary

D14078.id46212.diff

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

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)

Event Timeline