We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Yes
https://mitosis.builder.io/?outputTab=A4JwpghgxgLkA%3D%3D%3D&code=KYDwDg9gTgLgBAE2AMwIYFcA29noHYDGMAlhHnALICeAwhALaR7B4wAUYUEYAzgJRwA3gCg4cKMBjoo5NqLFwAPAmIA3cSgC8gztx4A6GMB4wAvgD4AKsZiKA9CtXn5fANzDTQA%3D
Using a ref inside of a Preact component adds forwardRef, per its shared rendering code with React.
ref
forwardRef
But forwardRef isn't needed or available in Preact unless you're using the compat mode, which we're hoping to avoid.
Ideally, we should simply pass the ref to the component without changing anything else.
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I am interested in helping provide a fix!
Yes
Which generators are impacted?
Reproduction case
https://mitosis.builder.io/?outputTab=A4JwpghgxgLkA%3D%3D%3D&code=KYDwDg9gTgLgBAE2AMwIYFcA29noHYDGMAlhHnALICeAwhALaR7B4wAUYUEYAzgJRwA3gCg4cKMBjoo5NqLFwAPAmIA3cSgC8gztx4A6GMB4wAvgD4AKsZiKA9CtXn5fANzDTQA%3D
Expected Behaviour
Using a
ref
inside of a Preact component addsforwardRef
, per its shared rendering code with React.But
forwardRef
isn't needed or available in Preact unless you're using the compat mode, which we're hoping to avoid.Actual Behaviour
Ideally, we should simply pass the
ref
to the component without changing anything else.Additional Information
No response
The text was updated successfully, but these errors were encountered: