Skip to content

Commit 1dddb78

Browse files
atscottAndrewKushnir
authored andcommitted
fix(core): toObservable should allow writes to signals in the effect (#49769)
`toObservable` creates an `effect` that watches for updates to the source signal. We should allow writes to signals in this effect, which would be consumed by downstream observers. PR Close #49769
1 parent 53d019a commit 1dddb78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/rxjs-interop/src/to_observable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function toObservable<T>(
5151
return;
5252
}
5353
observer.next(value);
54-
}, {injector, manualCleanup: true});
54+
}, {injector, manualCleanup: true, allowSignalWrites: true});
5555
return () => watcher.destroy();
5656
});
5757
}

0 commit comments

Comments
 (0)