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

Fat arrow functions and regular functions handled differently #1182

Open
1 of 11 tasks
dritter opened this issue May 15, 2023 · 0 comments · May be fixed by #1188
Open
1 of 11 tasks

Fat arrow functions and regular functions handled differently #1182

dritter opened this issue May 15, 2023 · 0 comments · May be fixed by #1188
Labels
bug Something isn't working

Comments

@dritter
Copy link

dritter commented May 15, 2023

I am interested in helping provide a fix!

Yes

Which generators are impacted?

  • All
  • Angular
  • HTML
  • Qwik
  • React
  • React-Native
  • Solid
  • Stencil
  • Svelte
  • Vue
  • Web components

Reproduction case

https://mitosis.builder.io/?outputTab=G4VwpkA%3D&inputTab=M4NwpgNgLmQ%3D&code=DwZwxgTglgDgLgPgFAAIVgPYDsR3QGyjAGsAJAQywBN8BTCARhQF4UAKWgN1qzgEoWCdNhAY6AOnwYA5mwBEVDClEBbWnAAWULNJQM5fVCiMAzAK5YwcKNgJEylGvQBMHbrwEBvYTjG1JMvKKyhhqmtq6zgYA3CgAvkjAAPTg0PDIiQBGZnBwttgAXGCEJMyexfYU1HSMcQgAQjl5WHrJ2bnYyMDtzSiFFaXlJQ7VLnWNHS3ObU2dQA%3D

Expected Behaviour

Both should be handled equally.

Actual Behaviour

Fat arrow functions are seen as data in mitosis.

Additional Information

No response

@dritter dritter added the bug Something isn't working label May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant