We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca5aa4d commit 64da69fCopy full SHA for 64da69f
packages/core/rxjs-interop/src/to_signal.ts
@@ -134,7 +134,8 @@ export function toSignal<T, U = undefined>(
134
source: Observable<T> | Subscribable<T>,
135
options?: ToSignalOptions<T | U> & {initialValue?: U},
136
): Signal<T | U> {
137
- ngDevMode &&
+ typeof ngDevMode !== 'undefined' &&
138
+ ngDevMode &&
139
assertNotInReactiveContext(
140
toSignal,
141
'Invoking `toSignal` causes new subscriptions every time. ' +
0 commit comments