We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As of react 16.6 the both Provider and Consumer types has _context property, which leads to context loss whenever we are visiting Consumer:
_context
if (currentElement.type._context) { // eslint-disable-next-line no-param-reassign currentElement.type._context._currentValue = currentElement.props.value }
The most naive way to fix it is to check whether we actually have value prop. There is more advanced approach here: jaydenseric/graphql-react@v3.0.0...v4.0.1#diff-3e6d5558503509cddfcf7ef1bc7ee575
value
Here is a demo of an error: https://codesandbox.io/s/o4wrj5m0jy
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As of react 16.6 the both Provider and Consumer types has
_context
property, which leads to context loss whenever we are visiting Consumer:The most naive way to fix it is to check whether we actually have
value
prop. There is more advanced approach here: jaydenseric/graphql-react@v3.0.0...v4.0.1#diff-3e6d5558503509cddfcf7ef1bc7ee575Here is a demo of an error: https://codesandbox.io/s/o4wrj5m0jy
The text was updated successfully, but these errors were encountered: