We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 951499f commit 4d0fa85Copy full SHA for 4d0fa85
2 files changed
.changeset/cuddly-glasses-visit.md
@@ -0,0 +1,5 @@
1
+---
2
+'@svelte-put/async-stack': patch
3
4
+
5
+should skip resolution if has already timeouted
packages/async-stack/src/stack-item.svelte.js
@@ -59,7 +59,7 @@ export class StackItem {
59
* @returns {Promise<Resolved | undefined>}
60
*/
61
resolve = async (resolved) => {
62
- if (this.state === 'resolved') return this.resolution;
+ if (this.state === 'resolved' || this.state === 'timeout') return this.resolution;
63
await Promise.all(this.#internals.resolveListeners.map((callback) => callback(resolved)));
64
this.#internals.resolve(resolved);
65
this.state = 'resolved';
0 commit comments