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

Adds React Context Provider #1216

Merged
merged 4 commits into from
Aug 15, 2022

Conversation

taylorjdawson
Copy link
Contributor

@taylorjdawson taylorjdawson commented Aug 15, 2022

Description

Adds a Web3OnboardProvider for global state management with React contexts.

Example:

function App() {
  return (
    <Web3OnboardProvider web3Onboard={web3Onboard}>
      <YourApp />
    </Web3OnboardProvider>
  )
}

Checklist

  • The version field in package.json is incremented following semantic versioning
  • I tested locally to make sure this feature/fix works
  • I have run yarn type-check & yarn build to confirm there are not any associated errors
  • This PR passes the Circle CI checks

@taylorjdawson taylorjdawson requested review from Adamj1232 and lnbc1QWFyb24 and removed request for Adamj1232 August 15, 2022 17:51
Copy link
Member

@Adamj1232 Adamj1232 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! React package version needs a bumperino

Copy link
Member

@Adamj1232 Adamj1232 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LesGO!

@taylorjdawson taylorjdawson merged commit 1abe6b6 into v2-web3-onboard-develop Aug 15, 2022
This was referenced Aug 18, 2022
@Adamj1232 Adamj1232 deleted the feature/context-provider-react branch January 26, 2023 20:26
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.

3 participants