Skip to content

Commit 07b3729

Browse files
committed
fix: make sure new promise during the next computation
1 parent 0aed379 commit 07b3729

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/qwik/src/core/reactive-primitives/impl/async-computed-signal-impl.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ export class AsyncComputedSignalImpl<T>
114114
}
115115

116116
async promise(): Promise<T> {
117+
// make sure we get a new promise during the next computation
118+
this.$promise$ = null;
117119
await retryOnPromise(() => this.$computeIfNeeded$());
118120
return this.$untrackedValue$!;
119121
}

0 commit comments

Comments
 (0)