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/ConnectButton without Moralis Server #143

Merged
merged 12 commits into from
Feb 15, 2022
Merged

Conversation

Y0moo
Copy link
Collaborator

@Y0moo Y0moo commented Feb 15, 2022

The <ConnectButton /> component allows you to authenticate users in case your server is initialized. When the server is not initialized, for example, you have <MoralisProvider initializeOnMount={false} > and you don't want to connect your Moralis server to the frontend the smart component will call enableWeb3()

If you want to use this component with the connected server but without adding a user to Moralis Database you can add moralisAuth prop <ConnectButton moralisAuth={false} />

The ConnectButton component automatically adds to the local storage info about the connector you used and will automatically call enableWeb3(). So if users was connected once it will automatically initialize web3 connection(No need anymore to add UseEffect hook for enableWeb3()

@github-actions
Copy link
Contributor

github-actions bot commented Feb 15, 2022

size-limit report 📦

Path Size
dist/web3uikit.cjs.production.min.js 657.29 KB (+0.51% 🔺)
dist/web3uikit.esm.js 640.49 KB (+0.49% 🔺)

@Y0moo
Copy link
Collaborator Author

Y0moo commented Feb 15, 2022

some bugs, fixing

@locothedev
Copy link
Collaborator

greatest of all time

@locothedev locothedev merged commit 9bb6401 into master Feb 15, 2022
@locothedev locothedev deleted the feat/cnctbtn_noserver branch February 15, 2022 12:58
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.

2 participants