You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.
stalebot
added
the
Stale
There has been a lack of activity on this issue and it may be closed soon.
label
Sep 12, 2018
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.
Environment
Description
I'm using context api and wanted to access context outside the render() function for example in a life cycle method componentDidMount().
Steps to Reproduce
I tried to use this tutorial https://reactjs.org/docs/context.html#accessing-context-in-lifecycle-methods. I passed down the context to a props but it gave undefined when i console log
this.props.context
Expected Behavior
Access context outside render()
Actual Behavior
Am i doing it correctly?
The text was updated successfully, but these errors were encountered: