From 586d6f748763d6e3a74ddd4fd6a45afd53b2f407 Mon Sep 17 00:00:00 2001 From: JuliusKoronciCH Date: Thu, 25 Apr 2024 11:42:47 +0200 Subject: [PATCH] make sure property observable fires on exact property match --- lib/event-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/event-store.ts b/lib/event-store.ts index fad53fe..8f42f7e 100644 --- a/lib/event-store.ts +++ b/lib/event-store.ts @@ -51,7 +51,7 @@ export function createEventStore( throttle?: number, ): Observable> => { const observable = globalEventStore$.pipe( - filter((event) => event.type.startsWith(eventType)), + filter((event) => event.type === eventType), map((event) => event.payload as GetValueType), share({ connector: () => new Subject(), resetOnRefCountZero: true }), );