File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
packages/svelte/src/internal/client/reactivity Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -83,19 +83,6 @@ export class Batch {
83
83
source . v = current ;
84
84
}
85
85
86
- for ( const e of this . render_effects ) {
87
- set_signal_status ( e , DIRTY ) ;
88
- schedule_effect ( e ) ;
89
- }
90
-
91
- for ( const e of this . effects ) {
92
- set_signal_status ( e , DIRTY ) ;
93
- schedule_effect ( e ) ;
94
- }
95
-
96
- this . render_effects = [ ] ;
97
- this . effects = [ ] ;
98
-
99
86
for ( const root of root_effects ) {
100
87
process_effects ( this , root ) ;
101
88
}
@@ -186,6 +173,19 @@ export class Batch {
186
173
this . #pending -= 1 ;
187
174
188
175
if ( this . #pending === 0 ) {
176
+ for ( const e of this . render_effects ) {
177
+ set_signal_status ( e , DIRTY ) ;
178
+ schedule_effect ( e ) ;
179
+ }
180
+
181
+ for ( const e of this . effects ) {
182
+ set_signal_status ( e , DIRTY ) ;
183
+ schedule_effect ( e ) ;
184
+ }
185
+
186
+ this . render_effects = [ ] ;
187
+ this . effects = [ ] ;
188
+
189
189
this . commit ( ) ;
190
190
}
191
191
}
You can’t perform that action at this time.
0 commit comments