fix root context

pull/14049/head
Dominic Gannaway 2 years ago
parent 41fa2a4c46
commit 66064fcb31

@ -208,8 +208,9 @@ function _mount(Component, { target, anchor, props = {}, events, context, intro
var anchor_node = anchor ?? target.appendChild(create_text());
branch(() => {
push({});
if (context) {
push({});
var ctx = /** @type {ComponentContext} */ (component_context);
ctx.c = context;
}
@ -232,9 +233,7 @@ function _mount(Component, { target, anchor, props = {}, events, context, intro
/** @type {Effect} */ (active_effect).nodes_end = hydrate_node;
}
if (context) {
pop();
}
pop();
});
return () => {

Loading…
Cancel
Save