Skip to content

Commit 2fca63d

Browse files
author
wuls
committed
fix information
1 parent 2066991 commit 2fca63d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.changeset/sweet-hairs-remember.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
'@qwik.dev/core': major
2+
'@qwik.dev/core': patch
33
---
44

5-
FIX: Add a new e2e test to verify QRL behavior without uncaught promises. Introduce retry logic for QRL resolution to handle potential promise retries, ensuring robustness in asynchronous operations.
5+
FIX: Introduce retry logic for QRL resolution to handle potential promise retries, ensuring robustness in asynchronous operations.

packages/qwik/src/core/shared/qrl/qrl-class.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,11 @@ export const createQRL = <TYPE>(
9393
// Note that we bind the current `this`
9494
const bound = (...args: QrlArgs<TYPE>): ValueOrPromise<QrlReturn<TYPE> | undefined> => {
9595
if (!qrl.resolved) {
96-
//@ts-ignore
9796
return retryOnPromise(() => qrl.resolve()).then((fn) => {
9897
if (!isFunction(fn)) {
9998
throw qError(QError.qrlIsNotFunction);
10099
}
101100
return bound(...args);
102-
// @ts-ignore
103101
});
104102
}
105103
if (beforeFn && beforeFn() === false) {

0 commit comments

Comments
 (0)