pull/16762/head
S. Elliott Johnson 1 week ago
parent a8fc627279
commit 5d04b3bc2c

@ -154,7 +154,7 @@ export class Boundary {
}
} else {
try {
this.#main_effect = branch(() => this.#children(this.#anchor));
this.#main_effect = branch(() => children(this.#anchor));
} catch (error) {
this.error(error);
}
@ -184,7 +184,6 @@ export class Boundary {
}
#hydrate_resolved_content() {
// Server already rendered resolved content, so hydrate it directly
try {
this.#main_effect = branch(() => this.#children(this.#anchor));
} catch (error) {
@ -203,10 +202,6 @@ export class Boundary {
}
this.#pending_effect = branch(() => pending(this.#anchor));
// future work: when we have some form of async SSR, we will
// need to use hydration boundary comments to report whether
// the pending or main block was rendered for a given
// boundary, and hydrate accordingly
Batch.enqueue(() => {
this.#main_effect = this.#run(() => {
Batch.ensure();

@ -17,7 +17,7 @@ export default function Async_each_fallback_hoisting($$anchor) {
var text = $.text();
$.template_effect(($0) => $.set_text(text, $0), undefined, [() => Promise.reject('This should never be reached')]);
$.template_effect(($0) => $.set_text(text, $0), void 0, [() => Promise.reject('This should never be reached')]);
$.append($$anchor, text);
},
($$anchor) => {
@ -25,7 +25,7 @@ export default function Async_each_fallback_hoisting($$anchor) {
var text_1 = $.text();
$.template_effect(($0) => $.set_text(text_1, $0), undefined, [() => Promise.resolve(4)]);
$.template_effect(($0) => $.set_text(text_1, $0), void 0, [() => Promise.resolve(4)]);
$.append($$anchor, text_1);
}
);

@ -15,7 +15,7 @@ export default function Async_each_hoisting($$anchor) {
var text = $.text();
$.template_effect(($0) => $.set_text(text, $0), undefined, [() => $.get(item)]);
$.template_effect(($0) => $.set_text(text, $0), void 0, [() => $.get(item)]);
$.append($$anchor, text);
});
});

@ -10,14 +10,14 @@ export default function Async_if_alternate_hoisting($$anchor) {
var consequent = ($$anchor) => {
var text = $.text();
$.template_effect(($0) => $.set_text(text, $0), undefined, [() => Promise.reject('no no no')]);
$.template_effect(($0) => $.set_text(text, $0), void 0, [() => Promise.reject('no no no')]);
$.append($$anchor, text);
};
var alternate = ($$anchor) => {
var text_1 = $.text();
$.template_effect(($0) => $.set_text(text_1, $0), undefined, [() => Promise.resolve('yes yes yes')]);
$.template_effect(($0) => $.set_text(text_1, $0), void 0, [() => Promise.resolve('yes yes yes')]);
$.append($$anchor, text_1);
};

@ -10,14 +10,14 @@ export default function Async_if_hoisting($$anchor) {
var consequent = ($$anchor) => {
var text = $.text();
$.template_effect(($0) => $.set_text(text, $0), undefined, [() => Promise.resolve('yes yes yes')]);
$.template_effect(($0) => $.set_text(text, $0), void 0, [() => Promise.resolve('yes yes yes')]);
$.append($$anchor, text);
};
var alternate = ($$anchor) => {
var text_1 = $.text();
$.template_effect(($0) => $.set_text(text_1, $0), undefined, [() => Promise.reject('no no no')]);
$.template_effect(($0) => $.set_text(text_1, $0), void 0, [() => Promise.reject('no no no')]);
$.append($$anchor, text_1);
};

Loading…
Cancel
Save