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

Using unstated inside React.StrictMode causes warnings #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonsmithers
Copy link

React will print these warnings when you use unstated inside strict mode.

Screenshot from 2019-09-12 21-21-05

Removing the createReactContext() polyfill seems to fix the issue.

React will print warnings when you use unstated inside strict mode.
These warnings are as follows:

> Warning: Legacy context API has been detected within a strict-mode tree:
>   ...
>
> Please update the following components: Consumer, Provider
>
> Learn more about this warning here:
> https://fb.me/react-legacy-context

> Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.
>   ...
> Please update the following components: Provider
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