fix: skip redundant batch.apply (#17816)

tiny fix — just realised we're calling `this.apply()` (via
`this.activate()`) unnecessarily, since it will happen again immediately
after in `flush_effects`
main
Rich Harris 13 hours ago committed by GitHub
parent 10380c2309
commit 16a13517ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: skip redundant batch.apply

@ -340,7 +340,7 @@ export class Batch {
flush() {
if (queued_root_effects.length > 0) {
this.activate();
current_batch = this;
flush_effects();
} else if (this.#pending === 0 && !this.is_fork) {
// append/remove branches

Loading…
Cancel
Save