Skip to content

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

Closed
davesnx wants to merge 15 commits intomainfrom
ref-as-prop
Closed

Allow "ref" as valid prop, cleanup of Invalid_arguments and improve coverage#848
davesnx wants to merge 15 commits intomainfrom
ref-as-prop

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