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

Accessing this.context during prepass does not seem to be working #19

Closed
wants to merge 5 commits into from

Conversation

BartWaardenburg
Copy link

Hey there, I was hoping you could help me out. I noticed that accessing this.context does not seem to be working during the prepass fase.

https://reactjs.org/docs/context.html#classcontexttype

I created a failing test I was hoping you could help solve.

@sventschui
Copy link
Member

sventschui commented Jan 11, 2021

Edit: I mixed something up, I'll dig into the issue when I find time

@sventschui sventschui closed this Jan 11, 2021
@sventschui sventschui reopened this Jan 11, 2021
@BartWaardenburg
Copy link
Author

Thanks @sventschui much appreciated, I didn't know using context this way was an option. (I always use the hook or a wrapper with a prop). But sadly this peace of code is in a library I don't control.

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.

2 participants