incremental-batches
Rich Harris 3 weeks ago
parent db7cce904b
commit 38a47384be

@ -173,13 +173,14 @@ function _mount(
var unmount = component_root(() => {
var anchor_node = anchor ?? target.appendChild(create_text());
push({});
boundary(
/** @type {TemplateNode} */ (anchor_node),
{
pending: () => {}
},
(anchor_node) => {
push({});
var ctx = /** @type {ComponentContext} */ (component_context);
if (context) ctx.c = context;
@ -209,12 +210,12 @@ function _mount(
throw HYDRATION_ERROR;
}
}
pop();
},
transformError
);
pop();
// Setup event delegation _after_ component is mounted - if an error would happen during mount, it would otherwise not be cleaned up
/** @type {Set<string>} */
var registered_events = new Set();

Loading…
Cancel
Save