Skip to content

Commit

Permalink
Update compat/test/browser/suspense-hydration.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Jul 8, 2024
1 parent 18e57dc commit 9e7473e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compat/test/browser/suspense-hydration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ describe('suspense hydration', () => {
});
});

it('Should hydrate a fragment with multiple children and an adjacent node correctly', () => {
// This is an expected fail case, we should encourage folks to not have adjacent
// nodes of the same type, or return a single wrapping dom node from a lazy boundary.
it.skip('Should hydrate a fragment with multiple children and an adjacent node correctly', () => {
scratch.innerHTML = '<div>Hello</div><div>World!</div><div>Baz</div>';
clearLog();

Expand Down
1 change: 1 addition & 0 deletions jsx-runtime/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function createVNode(type, props, key, isStaticChildren, __source, __self) {
_nextDom: undefined,
_component: null,
constructor: undefined,
_excess: null,
_original: --vnodeId,
_index: -1,
_flags: 0,
Expand Down
1 change: 1 addition & 0 deletions mangle.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"props": {
"$_listeners": "l",
"$_cleanup": "__c",
"$_excess": "__x",
"$__hooks": "__H",
"$_list": "__",
"$_pendingEffects": "__h",
Expand Down
1 change: 1 addition & 0 deletions src/create-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export function createVNode(type, props, key, ref, original) {
props,
key,
ref,
_excess: null,
_children: null,
_parent: null,
_depth: 0,
Expand Down
1 change: 1 addition & 0 deletions src/internal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ declare global {
_children: Array<VNode<any>> | null;
_parent: VNode | null;
_depth: number | null;
_excess: Array<any> | null;
/**
* The [first (for Fragments)] DOM child of a VNode
*/
Expand Down

0 comments on commit 9e7473e

Please sign in to comment.