Skip to content

Commit dfb595f

Browse files
committed
allow async computed in wrapprop
1 parent f058823 commit dfb595f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/qwik/src/core/reactive-primitives/internal-api.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { getStoreTarget } from './impl/store';
66
import { isPropsProxy } from '../shared/jsx/jsx-runtime';
77
import { SignalFlags, WrappedSignalFlags } from './types';
88
import { WrappedSignalImpl } from './impl/wrapped-signal-impl';
9+
import { AsyncComputedSignalImpl } from './impl/async-computed-signal-impl';
910

1011
// Keep these properties named like this so they're the same as from wrapSignal
1112
const getValueProp = (p0: any) => p0.value;
@@ -33,7 +34,9 @@ export const _wrapProp = <T extends Record<any, any>, P extends keyof T>(...args
3334
return obj[prop];
3435
}
3536
if (isSignal(obj)) {
36-
assertEqual(prop, 'value', 'Left side is a signal, prop must be value');
37+
if (!(obj instanceof AsyncComputedSignalImpl)) {
38+
assertEqual(prop, 'value', 'Left side is a signal, prop must be value');
39+
}
3740
if (obj instanceof WrappedSignalImpl && obj.flags & WrappedSignalFlags.UNWRAP) {
3841
return obj;
3942
}

0 commit comments

Comments
 (0)