File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
packages/svelte/src/internal/client/reactivity Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -283,19 +283,15 @@ export class Batch {
283
283
if ( ! skip && effect . fn !== null ) {
284
284
if ( is_branch ) {
285
285
effect . f ^= CLEAN ;
286
- } else if ( ( flags & EFFECT ) ! == 0 ) {
287
- if ( ( flags & CLEAN ) = == 0 ) {
286
+ } else if ( ( flags & CLEAN ) = == 0 ) {
287
+ if ( ( flags & EFFECT ) ! == 0 ) {
288
288
this . #effects. push ( effect ) ;
289
- }
290
- } else if ( async_mode_flag && ( flags & RENDER_EFFECT ) !== 0 ) {
291
- if ( ( flags & CLEAN ) === 0 ) {
289
+ } else if ( async_mode_flag && ( flags & RENDER_EFFECT ) !== 0 ) {
292
290
this . #render_effects. push ( effect ) ;
293
- }
294
- } else if ( is_dirty ( effect ) ) {
295
- if ( ( flags & ASYNC ) !== 0 ) {
291
+ } else if ( ( flags & ASYNC ) !== 0 ) {
296
292
var effects = effect . b ?. pending ? this . #boundary_async_effects : this . #async_effects;
297
293
effects . push ( effect ) ;
298
- } else {
294
+ } else if ( is_dirty ( effect ) ) {
299
295
if ( ( effect . f & BLOCK_EFFECT ) !== 0 ) this . #block_effects. push ( effect ) ;
300
296
update_effect ( effect ) ;
301
297
}
You can’t perform that action at this time.
0 commit comments