revert complete behavior check
This commit is contained in:
@@ -80,11 +80,8 @@ export class ObservableScope {
|
|||||||
error(err: unknown) {
|
error(err: unknown) {
|
||||||
subject$.error(err);
|
subject$.error(err);
|
||||||
},
|
},
|
||||||
complete() {
|
|
||||||
subject$.complete();
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
if (subject$.value === nothing && !subject$.isStopped)
|
if (subject$.value === nothing)
|
||||||
throw new Error("Behavior failed to synchronously emit an initial value");
|
throw new Error("Behavior failed to synchronously emit an initial value");
|
||||||
return subject$ as Behavior<T>;
|
return subject$ as Behavior<T>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user