revert complete behavior check
This commit is contained in:
1 parent
e5117f705d
commit
4b0f6e76c4
1 file changed
+1
-4
@@ -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