-
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): qwik react #6722
fix(v2): qwik react #6722
Conversation
|
// This is only used in v1, in v2 we use componentQrl directly | ||
function QwikComponent(props: PublicProps<PROPS>, key: string | null, flags: number): JSXNode { | ||
assertQrl(componentQrl); | ||
assertNumber(flags, 'The Qwik Component was not invoked correctly'); | ||
const hash = qTest ? 'sX' : componentQrl.$hash$.slice(0, 4); | ||
const finalKey = hash + ':' + (key ? key : ''); | ||
return _jsxSorted( | ||
Virtual, | ||
{ | ||
props, | ||
[OnRenderProp]: componentQrl, | ||
[QSlot]: props[QSlot], | ||
}, | ||
null, | ||
props.children, | ||
flags, | ||
finalKey | ||
) as any; | ||
} |
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.
for some reason for the qwik-react here is returning error. This is not needed in v2, so I removed it
@@ -232,6 +232,7 @@ export const vnode_diff = ( | |||
} | |||
} else if (jsxValue === SkipRender) { | |||
// do nothing, we are skipping this node | |||
journal = []; |
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.
is there any better way to ignore journal? @mhevery
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 should fix most problems with qwik react in v2