thencc / any-wallet

web3 auth for any algo wallets
https://thencc.github.io/any-wallet/
3 stars 1 forks source link

?Q? add .storeAccounts global boolean? #16

Open spencercap opened 1 year ago

spencercap commented 1 year ago

should we add a global bool for .storeAccounts which is checked before every write to .store.activeAccount etc etc

i was going to implement this but realized there would be a tone of unintended side effects like computed vars .isConnected and .isActive and .activeWallet checks that being correct.

Screenshot 2023-05-30 at 10 49 01 PM
            if (AnyWalletState.storeAccounts == false) {
                logger.log('.storeAccounts set to false, not recalling or setting .stored');
                return;
            }