Skip to content

Commit 8bd799e

Browse files
Remove redundant useMemo — React Compiler handles memoization
Co-authored-by: Shubham Agrawal <shubham1206agra@users.noreply.github.com>
1 parent 603cb74 commit 8bd799e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/settings/Profile/Contacts/SetDefaultContactMethodConfirmMagicCodePage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {useEffect, useMemo} from 'react';
1+
import React, {useEffect} from 'react';
22
import FullPageNotFoundView from '@components/BlockingViews/FullPageNotFoundView';
33
import ScreenWrapper from '@components/ScreenWrapper';
44
import ValidateCodeActionContent from '@components/ValidateCodeActionModal/ValidateCodeActionContent';
@@ -21,7 +21,7 @@ type SetDefaultContactMethodConfirmMagicCodePageProps = PlatformStackScreenProps
2121
function SetDefaultContactMethodConfirmMagicCodePage({route}: SetDefaultContactMethodConfirmMagicCodePageProps) {
2222
const {translate, formatPhoneNumber} = useLocalize();
2323
const backTo = route.params?.backTo;
24-
const contactMethod = useMemo(() => getDecodedContactMethodFromUriParam(route.params.contactMethod), [route.params.contactMethod]);
24+
const contactMethod = getDecodedContactMethodFromUriParam(route.params.contactMethod);
2525
const [account] = useOnyx(ONYXKEYS.ACCOUNT);
2626
const [session] = useOnyx(ONYXKEYS.SESSION);
2727
const [loginList] = useOnyx(ONYXKEYS.LOGIN_LIST);

0 commit comments

Comments
 (0)