chainId parameter (e.g., "eip155:1") to check the state for a specific chain instead of globally.
The user’s wallet share is stored in the browser’s
localStorage, which the browser can clear. For example, Safari’s ITP can clear it after periods of inactivity, and isWalletOnDevice() then returns false. See Handle storage loss to detect this with onWalletNotOnDevice.