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

Allow "ref" as valid prop, cleanup of Invalid_arguments and improve coverage #848

Closed
wants to merge 15 commits into from

Conversation

davesnx
Copy link
Member

@davesnx davesnx commented Jul 16, 2024

  • Allows to have a prop with ~ref
  • Took the chance to cleanup all raise Invalid_argument into Location.raise_errorf (which isn't ideal from the ppxlib standpoint, since it fails a Parseetree generation and only shows one error) but the refactor to this is massive.
    • I added tests for the Invalid_argument that I could reproduce and removed, but for the ones I couldn't I left them like they were before. I don't want to introduce a breaking change doing this work.
  • Took the chance to improve/fix this Very misleading error message if you misuse [@react.component] #843

@davesnx davesnx marked this pull request as draft July 17, 2024 09:48
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.

1 participant