Merge branch 'main' into each-block-pending

async-svelte-map
Rich Harris 7 months ago
commit 0901f4b19f

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

@ -694,11 +694,11 @@ Previously, Svelte employed a very complicated algorithm to determine if whitesp
<p>foo <span>- bar</span></p>
```
...or, if necessary for styling reasons, including it as an expression:
...or, if necessary for styling reasons, including it as an expression:
```svelte
```svelte
<p>foo<span>{' '}- bar</span></p>
```
```
- Certain exceptions apply such as keeping whitespace inside `pre` tags

@ -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