Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

Race condition in wallet detection #9

@piotr-layerzero

Description

@piotr-layerzero

If adapter is instantiated before the extension plugin is injected then the wallet is not detected correctly.
Calling adapter.connect() results in WalletType Address Info Error error to be thrown.
A solution to this is implement polling mechanism with sane timeout.

How to replicate: https://codesandbox.io/s/sharp-shaw-xvhll2?file=/index.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions