mirror of https://github.com/sveltejs/svelte
fix: parallelize async `@const`s in the template (#17165)
* fix: parallelize async `@const`s in the template This fixes #17075 by solving the TODO of #17038 to add out of order rendering for async `@const` declarations in the template. It's implemented by a new field on the component state which is set as soon as we come across an async const. All async const declarations and those after it will be added to that field, and the existing blockers mechanism is then used to line up the async work correctly. After processing a fragment a `run` command is created from the collected consts. * fix * tweak --------- Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/17169/head
parent
b9c7e45408
commit
7fd2d8660f
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: ensure async `@const` in boundary hydrates correctly
|
||||
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: parallelize async `@const`s in the template
|
||||
Loading…
Reference in new issue