-
Notifications
You must be signed in to change notification settings - Fork 540
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
React Generator Adds Ref Props to TS Comp Props #1179
Labels
bug
Something isn't working
Comments
You can manipulate the prop type generation here: mitosis/packages/core/src/generators/react/generator.ts Lines 339 to 343 in 67d4a51
|
Yup! I'd like to hold off until this PR is resolved before working on this: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am interested in helping provide a fix!
Yes
Which generators are impacted?
Reproduction case
https://mitosis.builder.io/?outputTab=E4UwhgxgLkA%3D&code=C4TwDgpgBACgTgezAZygXigbwFBShAGwCUIAzALigEMA7EAbmwF9HsIAPMBOYKAEzJUArgV6khNAMbAAlghpQAwggEBRPjODcAFGEQpK8JMgCUWXFDgRgQuAu0W8AHg0A3S2TSY9xgHSESUiYoAHoAPgsTRiZsIA
Expected Behaviour
When provided the following in Mitosis:
You get the following React output:
However, this leads to the TypeScript error of:
Actual Behaviour
To solve this TS error, we need to
Omit
the key from the propsref
usage:Additional Information
No response
The text was updated successfully, but these errors were encountered: