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 e6d2afb commit 765ba1eCopy full SHA for 765ba1e
packages/core/rxjs-interop/src/to_signal.ts
@@ -122,7 +122,8 @@ export function toSignal<T, U = undefined>(
122
source: Observable<T> | Subscribable<T>,
123
options?: ToSignalOptions<T | U> & {initialValue?: U},
124
): Signal<T | U> {
125
- ngDevMode &&
+ typeof ngDevMode !== 'undefined' &&
126
+ ngDevMode &&
127
assertNotInReactiveContext(
128
toSignal,
129
'Invoking `toSignal` causes new subscriptions every time. ' +
0 commit comments