You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
when connecting a wallet, it will set the wallet id into Storage,
when setting a item in Storage, it will generate a UUID as key and delete the previous item with the previous key
however, if we try to get the storage in async way, e.g put getLastConnectedWallet in reactjs useEffect
the behaviour will become a racing condition, new item may appended to the storage
it could result when getting last wallet id incorrect
Description:
when connecting a wallet, it will set the wallet id into Storage,
when setting a item in Storage, it will generate a UUID as key and delete the previous item with the previous key
however, if we try to get the storage in async way, e.g put
getLastConnectedWallet
in reactjs useEffectthe behaviour will become a racing condition, new item may appended to the storage
it could result when getting last wallet id incorrect
resolution:
may try to use https://www.npmjs.com/package/async-mutex to create lock
The text was updated successfully, but these errors were encountered: