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/7738/head
parent
ef2a4b463a
commit
f2ee6458e0
Loading…
Reference in new issue