Skip to content

Commit 176ef79

Browse files
committed
fix
1 parent f881e4a commit 176ef79

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/svelte/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ export default defineConfig({
1313
format: 'umd',
1414
name: 'svelte'
1515
},
16-
plugins: [resolve(), commonjs(), terser()]
16+
plugins: [resolve(), commonjs()]
1717
});

packages/svelte/src/internal/client/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export type ComponentContext = {
3939
s: MaybeSignal<Record<string, unknown>>;
4040
/** accessors */
4141
a: Record<string, any> | null;
42-
/** effectgs */
42+
/** effects */
4343
e: null | Array<EffectSignal>;
4444
/** mounted */
4545
m: boolean;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,15 @@ function init_update_callbacks() {
177177
// TODO somehow beforeUpdate ran twice on mount in Svelte 4 if it causes a render
178178
// possibly strategy to get this back if needed: analyse beforeUpdate function for assignements to state,
179179
// if yes, add a call to the component to force-run beforeUpdate once.
180-
untrack(() => update_callbacks.b.forEach(/** @param {any} c */ (c) => c()));
180+
update_callbacks.b.forEach((c) => c());
181181
flush_local_render_effects();
182182
// beforeUpdate can run again once if afterUpdate causes another update,
183183
// but afterUpdate shouldn't be called again in that case to prevent infinite loops
184184
if (!called_after) {
185185
user_effect(() => {
186186
called_before = false;
187187
called_after = true;
188-
untrack(() => update_callbacks.a.forEach(/** @param {any} c */ (c) => c()));
188+
update_callbacks.a.forEach((c) => c());
189189
// managed_effect so that it's not cleaned up when the parent effect is cleaned up
190190
const managed = managed_effect(() => {
191191
destroy_signal(managed);

0 commit comments

Comments
 (0)