anza-xyz / wallet-standard

Solana extensions to the Wallet Standard.
Apache License 2.0
85 stars 44 forks source link

Add autoConnect function to standard adapter #8

Open mcintyre94 opened 1 year ago

mcintyre94 commented 1 year ago

This PR refactors out the adapter connect function into a private #connect, which takes a silent flag and passes it through to the wallet connect function

We add a new autoConnect function which passes silent: true. This will be used by wallet-adapter automatically whenever the wallet is automatically connected on a page load.

@jordansexton

changeset-bot[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: 2dc02bb4afcfff4e969831c1a15ed09bc437ba92

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages | Name | Type | | -------------------------------------------- | ----- | | @solana/wallet-standard-wallet-adapter-base | Minor | | @solana/wallet-standard-wallet-adapter | Patch | | @solana/wallet-standard-wallet-adapter-react | Patch | | @solana/wallet-standard | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

mcintyre94 commented 1 year ago

Marking this a draft for now. Both Glow and Backpack have issues with being called like this which will need to be resolved before we make this change