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

fix: remove redundant check related to option(_) labelled props #799

Merged
merged 2 commits into from
Oct 22, 2023

Conversation

anmonteiro
Copy link
Member

@anmonteiro anmonteiro commented Oct 19, 2023

I don't think this check is necessary anymore, since #776 and #791.

After those PRs we infer the types correctly for optionally labelled arguments.

ppx/reason_react_ppx.ml Outdated Show resolved Hide resolved
@anmonteiro anmonteiro force-pushed the anmonteiro/rm-untrue-check branch 2 times, most recently from dfeed60 to cbab933 Compare October 21, 2023 00:18
@anmonteiro anmonteiro changed the title fix: remove untrue check related to option(_) labelled props fix: remove redundant check related to option(_) labelled props Oct 21, 2023
@anmonteiro
Copy link
Member Author

@jchavarri added tests and re-ordered the commits to show how the check was redundant.

@anmonteiro anmonteiro force-pushed the anmonteiro/rm-untrue-check branch from cbab933 to 342a6b7 Compare October 21, 2023 00:21
@anmonteiro anmonteiro force-pushed the anmonteiro/rm-untrue-check branch from 342a6b7 to 4721911 Compare October 21, 2023 00:22
Copy link
Collaborator

@jchavarri jchavarri left a comment

Choose a reason for hiding this comment

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

Thanks! it is now super clear what the change does.

@anmonteiro anmonteiro merged commit 7ca984c into main Oct 22, 2023
3 checks passed
@anmonteiro anmonteiro deleted the anmonteiro/rm-untrue-check branch October 22, 2023 07:43
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