File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ export default defineConfig({
13
13
format : 'umd' ,
14
14
name : 'svelte'
15
15
} ,
16
- plugins : [ resolve ( ) , commonjs ( ) , terser ( ) ]
16
+ plugins : [ resolve ( ) , commonjs ( ) ]
17
17
} ) ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export type ComponentContext = {
39
39
s : MaybeSignal < Record < string , unknown > > ;
40
40
/** accessors */
41
41
a : Record < string , any > | null ;
42
- /** effectgs */
42
+ /** effects */
43
43
e : null | Array < EffectSignal > ;
44
44
/** mounted */
45
45
m : boolean ;
Original file line number Diff line number Diff line change @@ -177,15 +177,15 @@ function init_update_callbacks() {
177
177
// TODO somehow beforeUpdate ran twice on mount in Svelte 4 if it causes a render
178
178
// possibly strategy to get this back if needed: analyse beforeUpdate function for assignements to state,
179
179
// 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 ( ) ) ;
181
181
flush_local_render_effects ( ) ;
182
182
// beforeUpdate can run again once if afterUpdate causes another update,
183
183
// but afterUpdate shouldn't be called again in that case to prevent infinite loops
184
184
if ( ! called_after ) {
185
185
user_effect ( ( ) => {
186
186
called_before = false ;
187
187
called_after = true ;
188
- untrack ( ( ) => update_callbacks . a . forEach ( /** @param { any } c */ ( c ) => c ( ) ) ) ;
188
+ update_callbacks . a . forEach ( ( c ) => c ( ) ) ;
189
189
// managed_effect so that it's not cleaned up when the parent effect is cleaned up
190
190
const managed = managed_effect ( ( ) => {
191
191
destroy_signal ( managed ) ;
You can’t perform that action at this time.
0 commit comments