|
|
@ -52,8 +52,9 @@ export function component(node, get_component, render_fn) {
|
|
|
|
block(() => {
|
|
|
|
block(() => {
|
|
|
|
if (component === (component = get_component())) return;
|
|
|
|
if (component === (component = get_component())) return;
|
|
|
|
|
|
|
|
|
|
|
|
if (component) {
|
|
|
|
|
|
|
|
var defer = boundary !== null && should_defer_append();
|
|
|
|
var defer = boundary !== null && should_defer_append();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (component) {
|
|
|
|
var target = anchor;
|
|
|
|
var target = anchor;
|
|
|
|
|
|
|
|
|
|
|
|
if (defer) {
|
|
|
|
if (defer) {
|
|
|
@ -61,14 +62,14 @@ export function component(node, get_component, render_fn) {
|
|
|
|
offscreen_fragment.append((target = document.createComment('')));
|
|
|
|
offscreen_fragment.append((target = document.createComment('')));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pending_effect = branch(() => render_fn(anchor, component));
|
|
|
|
pending_effect = branch(() => render_fn(target, component));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (defer) {
|
|
|
|
if (defer) {
|
|
|
|
add_boundary_callback(boundary, commit);
|
|
|
|
add_boundary_callback(boundary, commit);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
commit();
|
|
|
|
commit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}, EFFECT_TRANSPARENT);
|
|
|
|
}, EFFECT_TRANSPARENT);
|
|
|
|
|
|
|
|
|
|
|
|
if (hydrating) {
|
|
|
|
if (hydrating) {
|
|
|
|