-
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 vnode separators #6596
Conversation
@@ -956,7 +956,7 @@ class SSRContainer extends _SharedContainer implements ISSRContainer { | |||
let skipCount = elementIdx - lastSerializedIdx; | |||
// console.log('emitVNodeSeparators', lastSerializedIdx, elementIdx, skipCount); | |||
while (skipCount != 0) { | |||
if (skipCount >= 4096) { |
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.
@mhevery I think this is a good change. If skipCount is equal to 4096 then we want to execute code in the else block, right?
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.
yes, that is correct. Thank you for noticing.
ADVANCE_2048_CH: /* * */ ',', // ',' is vNodeData separator skipping 1024. | ||
ADVANCE_2048: /* ****** */ 44, // ',' is vNodeData separator skipping 1024. | ||
ADVANCE_4096_CH: /* * */ `.`, // `.` is vNodeData separator skipping 2048. | ||
ADVANCE_4096: /* ****** */ 46, // `.` is vNodeData separator skipping 2048. |
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 don't know why we are missing the 45
charcode?
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.
That is weird! I don't think we should be skipping anything. I think that is a bug and should be fixed.
ADVANCE_2048_CH: /* * */ ',', // ',' is vNodeData separator skipping 1024. | ||
ADVANCE_2048: /* ****** */ 44, // ',' is vNodeData separator skipping 1024. | ||
ADVANCE_4096_CH: /* * */ `.`, // `.` is vNodeData separator skipping 2048. | ||
ADVANCE_4096: /* ****** */ 46, // `.` is vNodeData separator skipping 2048. |
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.
That is weird! I don't think we should be skipping anything. I think that is a bug and should be fixed.
@@ -956,7 +956,7 @@ class SSRContainer extends _SharedContainer implements ISSRContainer { | |||
let skipCount = elementIdx - lastSerializedIdx; | |||
// console.log('emitVNodeSeparators', lastSerializedIdx, elementIdx, skipCount); | |||
while (skipCount != 0) { | |||
if (skipCount >= 4096) { |
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.
yes, that is correct. Thank you for noticing.
This PR fixes vnode separators and
missing refElement
error in the docs