Closed ferostabio closed 1 year ago
After doing the first batch of (minor, granted) changes, address still took an average of 1.75 seconds to load, when all major projects load it almost instantly.
I went through @web3-onboard
's rabbit hole and couldn't find any way to speed up onboard.connectWallect()
. I started looking at the different sub packages of them we already use, and realized that they offer a useWallets
hook that, when implemented inside a component, it shows the connected wallets right after loading.
A couple of comments:
@web3-onboard
, reason I added the property and safety checks.onOnboardChange
with the hook.auth.store
a bit.
There were two issues in the login flow:
Init
/reconnect
were called twice.onOnboardChange
that triggered a logout every time the app loaded, so theConnect wallet
button flashed for a bit.Tested a number of times, but we should all do it a number of times in case there are any side-effects or something I'm missing.