mirror of https://github.com/sveltejs/svelte
- Scheduling an update no longer allocates two new promises, only one via `then`. - The `tick` method was really returning an empty, resolved promise, so just reusing the same promise there as well. It was a little confusing because it _looked_ like it would return a promise to when the flush had completed, but in fact it was returning a promise that would resolve before the flush completed, as it was the promise that was "thenned" for the flush.pull/2555/head
parent
93f7ecca1d
commit
1519a96b52
Loading…
Reference in new issue