Skip to content

add context handlers #260

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

Merged
merged 4 commits into from
Jun 6, 2018
Merged

add context handlers #260

merged 4 commits into from
Jun 6, 2018

Conversation

glebez
Copy link
Contributor

@glebez glebez commented Mar 7, 2018

Hi,

this PR builds up on the PR #130 that didn't show any activity for about a year now.

It introduces two new handlers for contextType and childContextType based on existing propTypeHandler.

I've rebased the stale branch, updated 2 fixtures and snapshots (as was requested in the above PR) and also fixed some linter errors. Let me know if any other changes are required, please.

Thanks,
G.

Copy link
Collaborator

@danez danez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just one tiny little thing.

propTypesPath = resolveToValue(propTypesPath);
if (!propTypesPath) {
return;
export function getPropTypeHandler(propName: string) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this function must not necessarily be exported?

@indexzero
Copy link

Would be great to see this get merged.

@glebez glebez force-pushed the child-context-types branch from 23980f7 to 8f825fd Compare June 1, 2018 13:42
@glebez
Copy link
Contributor Author

glebez commented Jun 1, 2018

Hey! The tiny little thing is fixed now. And thanks everyone for your patience.

@danez danez merged commit f731f22 into reactjs:master Jun 6, 2018
@danez
Copy link
Collaborator

danez commented Jun 6, 2018

Thank you very much.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants