Skip to content

Commit 2417c15

Browse files
committed
add untrackedValue setter
1 parent d10846b commit 2417c15

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/qwik/src/core/v2/signal/v2-signal.ts

+5
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ export class Signal2<T = any> extends Subscriber implements ISignal2<T> {
161161
return this.$untrackedValue$;
162162
}
163163

164+
// TODO: should we disallow setting the value directly?
165+
set untrackedValue(value: T) {
166+
this.$untrackedValue$ = value;
167+
}
168+
164169
get value() {
165170
const ctx = tryGetInvokeContext();
166171
if (ctx) {

0 commit comments

Comments
 (0)