Skip to content

Fat arrow functions and regular functions handled differently #1182

@dritter

Description

@dritter

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions