Skip to content

Commit 0abc0a8

Browse files
committed
tweak
1 parent 2620a21 commit 0abc0a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/svelte/src/internal/client/render.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import * as w from './warnings.js';
3030
import * as e from './errors.js';
3131
import { assign_nodes } from './dom/template.js';
3232
import { is_passive_event } from '../../utils.js';
33+
import { active_fork, Fork } from './reactivity/forks.js';
3334

3435
/**
3536
* This is normally true — block effects should run their intro transitions —
@@ -205,6 +206,8 @@ function _mount(Component, { target, anchor, props = {}, events, context, intro
205206
// @ts-expect-error will be defined because the render effect runs synchronously
206207
var component = undefined;
207208

209+
Fork.ensure();
210+
208211
var unmount = component_root(() => {
209212
var anchor_node = anchor ?? target.appendChild(create_text());
210213

0 commit comments

Comments
 (0)