-
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
feat(v2): SSRBlock and SSRStream implementation #6181
Conversation
@@ -421,6 +421,10 @@ class SSRContainer extends _SharedContainer implements ISSRContainer { | |||
this.write(rawHtml); | |||
} | |||
|
|||
commentNode(text: string) { | |||
this.write('<!--' + text + '-->'); |
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 think these comment nodes will confuse the current implementation of materializeFromVNodeData,
so we will need to update that.
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.
It is already done by this code :D but I have added additional test for this
while (!isElement(child)) {
child = child!.nextSibling;
if (!child) {
throwErrorAndStop(
'Materialize error: missing element: ' + vData + ' ' + peek() + ' ' + nextToConsumeIdx
);
}
}
This PR adds support for the
SSRBlock
andSSRStream
components