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

Solid: fix Fragment w/ key prop #1634

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

samijaber
Copy link
Contributor

Description

Copy link

changeset-bot bot commented Nov 8, 2024

🦋 Changeset detected

Latest commit: 3b9dbf2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@builder.io/mitosis Patch
@builder.io/mitosis-cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

nx-cloud bot commented Nov 8, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 3b9dbf2. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 4 targets

Sent with 💌 from NxCloud.

@samijaber samijaber merged commit e90df53 into BuilderIO:main Nov 8, 2024
8 checks passed
@samijaber samijaber deleted the fix/solid-fragment-key branch November 8, 2024 14:15
{(option, _index) => {
const index = _index();
return (
<Fragment key={\`key-\${option}\`}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samijaber is Fragment a global component in solid? Found out here that solid fragments are already keyed: solidjs/solid#366 do we need to handle it? or just <>...</> should be sufficient?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good catch!

  • Fragment is not a global component in solid, or actually a component at all! I don't know why I thought it was
  • good find on the issue, can keep <>

fixed in #1639 to ignore all props in Fragments

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.

2 participants