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(v2): fix toggle named projection #6563

Merged
merged 5 commits into from
Jun 18, 2024

Conversation

Varixo
Copy link
Member

@Varixo Varixo commented Jun 17, 2024

This PR fixes toggling named projection with an interaction

Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Jerry_wu <JerryWu1234@users.noreply.github.com>
Co-authored-by: Shai Reznik <shairez@users.noreply.github.com>
@Varixo Varixo requested a review from a team as a code owner June 17, 2024 12:50
@Varixo Varixo marked this pull request as draft June 17, 2024 12:58
@Varixo Varixo marked this pull request as ready for review June 17, 2024 13:21
@@ -64,7 +64,7 @@ import {
vnode_setProp,
type VNodeJournal,
} from './vnode';
import { vnode_diff } from './vnode-diff';
import { isSlotProp, vnode_diff } from './vnode-diff';
Copy link
Member

Choose a reason for hiding this comment

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

are we sure we want isSlotProp to sit @ vnode-diff? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, I will think about it later

Copy link
Member Author

Choose a reason for hiding this comment

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

I moved this into separate file

@@ -289,7 +289,7 @@ export class DomContainer extends _SharedContainer implements IClientContainer,
vNode[VNodeProps.flags] |= VNodeFlags.Resolved;
for (let i = vnode_getPropStartIndex(vNode); i < vNode.length; i = i + 2) {
const prop = vNode[i] as string;
if (!prop.startsWith('q:')) {
if (isSlotProp(prop)) {
Copy link
Member

Choose a reason for hiding this comment

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

👨‍🍳 💋

@shairez shairez merged commit b94a6e8 into QwikDev:build/v2 Jun 18, 2024
18 checks passed
@Varixo Varixo deleted the build/v2-toggle-named-projection branch June 18, 2024 13:37
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.

3 participants