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
Hi. I'm making ink component using context which is used in ink-redux.
when I use getChildContext method, render contains context but constructor does not.
getChildContext
render
constructor
class Sub extends Component { constructor (props, context) { super(props, context); console.log(context); // {} } render (props, state, context) { console.log(context); // { hi: 'hello' } return ( <Text blue>Hi</Text> ) } } class Parent extends Component { getChildContext () { return { hi: 'hello' } } render () { console.log(this.context); // { hi: 'hello'} return ( <Sub /> ); } }
thanks!
The text was updated successfully, but these errors were encountered:
I make a PR for this. #81
Sorry, something went wrong.
Closing, see #81.
No branches or pull requests
Hi. I'm making ink component using context which is used in ink-redux.
when I use
getChildContext
method,render
contains context butconstructor
does not.thanks!
The text was updated successfully, but these errors were encountered: