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

fix: destructured props for inline components #7190

Merged
merged 2 commits into from
Dec 26, 2024

Conversation

Varixo
Copy link
Member

@Varixo Varixo commented Dec 24, 2024

Convert destructured props for an inline component to single prop

@Varixo Varixo self-assigned this Dec 24, 2024
@Varixo Varixo requested a review from a team as a code owner December 24, 2024 10:14
Copy link

changeset-bot bot commented Dec 24, 2024

🦋 Changeset detected

Latest commit: d8a19ca

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

This PR includes changesets to release 5 packages
Name Type
@qwik.dev/core Patch
eslint-plugin-qwik Patch
@qwik.dev/react Patch
@qwik.dev/router Patch
create-qwik 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

@Varixo Varixo requested a review from wmertens December 24, 2024 10:35
Copy link

pkg-pr-new bot commented Dec 24, 2024

Open in Stackblitz

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/core@7190
npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/router@7190
npm i https://pkg.pr.new/QwikDev/qwik/eslint-plugin-qwik@7190
npm i https://pkg.pr.new/QwikDev/qwik/create-qwik@7190

commit: d8a19ca

Copy link
Contributor

github-actions bot commented Dec 24, 2024

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
qwik-docs ✅ Ready (View Log) Visit Preview d8a19ca

@Varixo Varixo force-pushed the v2-inline-destructured-props branch 2 times, most recently from d398081 to f7893ea Compare December 24, 2024 13:38
Copy link
Member

@wmertens wmertens left a comment

Choose a reason for hiding this comment

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

💪

@Varixo Varixo force-pushed the v2-inline-destructured-props branch from f7893ea to d391dda Compare December 25, 2024 10:51
@Varixo Varixo force-pushed the v2-inline-destructured-props branch from d391dda to 48af55c Compare December 25, 2024 10:54
@@ -9,7 +9,7 @@ snapshot_kind: text

import { $, component$ } from '@qwik.dev/core';

export const Foo = component$(({color}) => {
export const Foo = component$((props) => {
Copy link
Member

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

Copy link
Member Author

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?

Copy link
Member

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

Copy link
Member Author

@Varixo Varixo Dec 25, 2024

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?

@Varixo Varixo merged commit 2a60951 into build/v2 Dec 26, 2024
22 checks passed
@Varixo Varixo deleted the v2-inline-destructured-props branch December 26, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants