Skip to content

Commit 4986138

Browse files
committed
fix legacy wrapper
1 parent a59c8c3 commit 4986138

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/svelte/src/legacy/legacy-client.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { mutable_source, set } from '../internal/client/reactivity/sources.js';
33
import { user_pre_effect } from '../internal/client/reactivity/effects.js';
44
import { hydrate, mount, unmount } from '../internal/client/render.js';
5-
import { get } from '../internal/client/runtime.js';
5+
import { flush_sync, get, } from '../internal/client/runtime.js';
66
import { define_property } from '../internal/shared/utils.js';
77

88
/**
@@ -110,6 +110,8 @@ class Svelte4Component {
110110
recover: options.recover
111111
});
112112

113+
flush_sync();
114+
113115
this.#events = props.$$events;
114116

115117
for (const key of Object.keys(this.#instance)) {

0 commit comments

Comments
 (0)