Remove deep link path and prevent re-render from useEffect #7

Merged
nabarun merged 4 commits from deep-stack/laconic-wallet-web:sk-fix-memory-leak into main 2024-08-01 06:18:03 +00:00
Showing only changes of commit 04f47c8c95 - Show all commits

View File

@ -1,6 +1,7 @@
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { Image, ScrollView, View } from 'react-native';
import { ActivityIndicator, Button, Text, Appbar } from 'react-native-paper';
import _ from 'lodash';
import { useNavigation } from '@react-navigation/native';
import {
@ -86,7 +87,7 @@ const SignRequest = ({ route }: SignRequestProps) => {
return;
}
if (requestAccount !== account) {
if (_.isEqual(requestAccount, account)) {
setAccount(requestAccount);
}
if (requestMessage !== message) {