Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: autoconnect global loading #79

Merged
merged 1 commit into from
Jan 15, 2022
Merged

feat: autoconnect global loading #79

merged 1 commit into from
Jan 15, 2022

Conversation

tmm
Copy link
Member

@tmm tmm commented Jan 15, 2022

Inspo #37 h/t @sammdec

When Provider autoConnect={true}, useConnect hook has loading set to true on load. After the auto connect process is tried, the global connecting value is switch back to false. (Maybe useful in the future to also set the global connector so you know what connector is attempting to auto connect.)

Decided to not make changes to useAccount loading because it isn't involved at this step of the "connection" process.

@changeset-bot
Copy link

changeset-bot bot commented Jan 15, 2022

⚠️ No Changeset found

Latest commit: 701108b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel
Copy link

vercel bot commented Jan 15, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/zoo/wagmi/C6aUXuSqziCMGFVqmt8anF4pEq9Z
✅ Preview: https://wagmi-git-tmm-autoconnect-flag-zoo.vercel.app

@tmm tmm marked this pull request as ready for review January 15, 2022 04:06
@tmm tmm merged commit 2ea223f into main Jan 15, 2022
@tmm tmm deleted the tmm/autoconnect-flag branch January 15, 2022 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant