fix: overwrite #last_value when Spring is `.set()` with `{instant: true}` (#14656)

* fix: overwrite #last_value when Spring is  with

* run npx changeset
pull/14652/head
grieben 1 month ago committed by GitHub
parent fb879dd702
commit a26b6d80ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
Overwrite Spring.#last_value when using .set() with {instant: true}

@ -282,6 +282,7 @@ export class Spring {
this.#task?.abort();
this.#task = null;
set(this.#current, set(this.#target, value));
this.#last_value = value;
return Promise.resolve();
}

Loading…
Cancel
Save