Whenever a user switches/connects his/her new wallet address. Moralis auth pops up 4 times!
sometimes it pops up 34 times
props.Moralis.onAccountsChanged(async function (accounts) {
await props.authenticate();
});
I have a doubt that itβs because of this function
I heard that useEffect can solve similar problems
how to do that?
^ this one was mentioned in the docs