mirror of https://github.com/sveltejs/svelte
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/16825/head
parent
5e6fed6bab
commit
6d6547d654
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: ensure tick resolves within a macrotask
|
Loading…
Reference in new issue