-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix: destructured props for inline components #7190
Conversation
🦋 Changeset detectedLatest commit: d8a19ca The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
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 |
commit: |
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
d398081
to
f7893ea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💪
f7893ea
to
d391dda
Compare
d391dda
to
48af55c
Compare
@@ -9,7 +9,7 @@ snapshot_kind: text | |||
|
|||
import { $, component$ } from '@qwik.dev/core'; | |||
|
|||
export const Foo = component$(({color}) => { | |||
export const Foo = component$((props) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one was wrong actually, maybe we want to use some props? Not sure if important
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean? Later we use ...props
and never the color
, so I think now it is correct?
or do you mean that this error is intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it was destructuring color but using props
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, and it was wrong, right? or should I revert it?
Convert destructured props for an inline component to single prop