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

DRAFT: 1333 slots with data #1336

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Marvin-Brouwer
Copy link

Description

Draft PR for #1333

  • what changes you made,
    Added support for data binding on slots
  • why you made them, and
    I want to use mitosis but I'm using slots in a <For .. component so I need to pass the item
  • any other context that you think might be helpful for someone to better understand what is contained in this pull request.
    I'm currently concerned about the react implementation.
    When props are required it looks like (exampleProps) => <Component {...exampleProps} />
    However, when no props it currently looks like () => <Component /> which causes backwards compatibility issues.
    This may be solved by not doing the latter, however, that is inconsistent so might also not be ideal.

Copy link

vercel bot commented Jan 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mitosis-fiddle ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2024 8:14pm

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