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 }), );