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

Use legacy context API to support older versions of react #247

Merged
merged 1 commit into from
Apr 17, 2019

Conversation

kmagiera
Copy link
Member

@kmagiera kmagiera commented Apr 17, 2019

Previously we used static contextType in order for react to propagate context as a variable to components. Apparently this API isn't supported in still popular versions of react. This PR changes it to use old Provider API with render props which works across all of the most recent versions.

@kmagiera kmagiera merged commit 8d2b7b1 into master Apr 17, 2019
@kmagiera kmagiera deleted the use-legacy-ctx branch April 17, 2019 14:24
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