-
Notifications
You must be signed in to change notification settings - Fork 1
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
Warning: Rendering <Context.Consumer.Consumer> is not supported #9
Comments
ya I raise my hand in defeat for providing a more flexible api :P I think what needs to happen is the RCT just needs to only accept the base Context object, like the new useContext hook does. We should update references in react-bootstrap to just use the Context |
As outlined in react-restart/context#9, context toolbox needs to only use Context.Consumer since it can't navigate to the Consumer property reliably.
Thanks @jquense yes, I think that's best. I was going to make a PR to do so but I think you can just revert fb0262a I updated react-bootstrap to always pass in Context.Consumer in react-bootstrap/react-bootstrap#3368 |
And thanks to react-bootstrap/react-bootstrap#3368 (comment) I realize I completely mis-read your comment @jquense. I'll update the PR above to pass in Context instead of Context.Consumer. |
As outlined in react-restart/context#9, context toolbox needs to only use only Context, not Context.Consumer
…3368) As outlined in react-restart/context#9, context toolbox needs to only use only Context, not Context.Consumer
PR was merged into bootstrap, so we can close this now. |
it's caused by https://github.com/4Catalyzer/react-context-toolbox/blob/master/src/mapContextToProps.js#L12
See discussion around this at react-bootstrap/react-bootstrap#3362
The text was updated successfully, but these errors were encountered: