File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
packages/svelte/src/internal/client/reactivity Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,8 @@ export class Batch {
178
178
flush_queued_effects ( render_effects ) ;
179
179
flush_queued_effects ( effects ) ;
180
180
181
+ previous_batch = null ;
182
+
181
183
this . #deferred?. resolve ( ) ;
182
184
} else {
183
185
this . #defer_effects( this . #render_effects) ;
@@ -280,17 +282,6 @@ export class Batch {
280
282
281
283
deactivate ( ) {
282
284
current_batch = null ;
283
- previous_batch = null ;
284
-
285
- for ( const update of effect_pending_updates ) {
286
- effect_pending_updates . delete ( update ) ;
287
- update ( ) ;
288
-
289
- if ( current_batch !== null ) {
290
- // only do one at a time
291
- break ;
292
- }
293
- }
294
285
}
295
286
296
287
flush ( ) {
@@ -307,6 +298,16 @@ export class Batch {
307
298
}
308
299
309
300
this . deactivate ( ) ;
301
+
302
+ for ( const update of effect_pending_updates ) {
303
+ effect_pending_updates . delete ( update ) ;
304
+ update ( ) ;
305
+
306
+ if ( current_batch !== null ) {
307
+ // only do one at a time
308
+ break ;
309
+ }
310
+ }
310
311
}
311
312
312
313
/**
You can’t perform that action at this time.
0 commit comments