From 4b0f6e76c4f8df8b227fdbff5bf4800afef9e63c Mon Sep 17 00:00:00 2001 From: Timo K Date: Thu, 27 Nov 2025 15:38:31 +0100 Subject: [PATCH] revert complete behavior check --- src/state/ObservableScope.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/state/ObservableScope.ts b/src/state/ObservableScope.ts index 812cfcd7..e3fc644f 100644 --- a/src/state/ObservableScope.ts +++ b/src/state/ObservableScope.ts @@ -80,11 +80,8 @@ export class ObservableScope { error(err: unknown) { 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"); return subject$ as Behavior; }