-
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(v2): fix toggle named projection #6563
fix(v2): fix toggle named projection #6563
Conversation
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>
@@ -64,7 +64,7 @@ import { | |||
vnode_setProp, | |||
type VNodeJournal, | |||
} from './vnode'; | |||
import { vnode_diff } from './vnode-diff'; | |||
import { isSlotProp, vnode_diff } from './vnode-diff'; |
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.
are we sure we want isSlotProp
to sit @ vnode-diff
? 🤔
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, I will think about it later
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.
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)) { |
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 PR fixes toggling named projection with an interaction