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

feat(injector): Add reconcilePropTypes #10

Merged
merged 9 commits into from
Apr 6, 2020

Conversation

eps1lon
Copy link
Contributor

@eps1lon eps1lon commented Mar 27, 2020

Closes #1

It's not viable to hook into generate for more complex validators such as is used in the test. It would also add indirection. I think this has the best of both worlds even though it might be nice to hook into every type of Node during generation. But we don't have a use case for that so I went with the simpler approach in my book.

Copy link
Owner

@merceyz merceyz 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, and a much better solution than hooking into generate 👍. Left a few comments inline, otherwise it just needs a rebase.

@eps1lon eps1lon requested a review from merceyz April 6, 2020 16:36
@merceyz merceyz merged commit 7b0bff9 into merceyz:master Apr 6, 2020
@eps1lon eps1lon deleted the feat/reconcile-prop-types branch April 6, 2020 17:36
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.

Custom propTypes validators
2 participants