mirror of https://github.com/sveltejs/svelte
fix: ensure tick resolves within a macrotask (#16825)
Race them against each other - in almost all cases requestAnimationFrame will fire first, but e.g. in case the window is not focused or a view transition happens, requestAnimationFrame will be delayed and setTimeout helps us resolve fast enough in that case Fixes #16429 Fixes https://github.com/sveltejs/kit/issues/14220pull/16737/merge
parent
5e6fed6bab
commit
1ef297f25d
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: ensure tick resolves within a macrotask
|
Loading…
Reference in new issue