activate inside flush

simplify-batch
Rich Harris 13 hours ago
parent 32401b3bcc
commit dcc438adf3

@ -244,7 +244,6 @@ export async function async_body(fn) {
if (pending) {
batch.flush();
} else {
batch.activate();
batch.decrement();
}

@ -356,6 +356,8 @@ export class Batch {
}
flush() {
this.activate();
if (queued_root_effects.length > 0) {
flush_effects();
} else {

Loading…
Cancel
Save