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 2fca63d commit 9d50c28Copy full SHA for 9d50c28
packages/qwik/src/core/shared/qrl/qrl-class.ts
@@ -93,7 +93,8 @@ export const createQRL = <TYPE>(
93
// Note that we bind the current `this`
94
const bound = (...args: QrlArgs<TYPE>): ValueOrPromise<QrlReturn<TYPE> | undefined> => {
95
if (!qrl.resolved) {
96
- return retryOnPromise(() => qrl.resolve()).then((fn) => {
+ const promise = retryOnPromise(() => qrl.resolve()) as Promise<TYPE>;
97
+ return promise.then((fn) => {
98
if (!isFunction(fn)) {
99
throw qError(QError.qrlIsNotFunction);
100
}
0 commit comments