Skip to content

Commit

Permalink
make sure property observable fires on exact property match
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliusKoronciCH committed Apr 25, 2024
1 parent 1389c99 commit 586d6f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/event-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function createEventStore<T extends object>(
throttle?: number,
): Observable<GetValueType<T, K>> => {
const observable = globalEventStore$.pipe(
filter((event) => event.type.startsWith(eventType)),
filter((event) => event.type === eventType),
map((event) => event.payload as GetValueType<T, K>),
share({ connector: () => new Subject(), resetOnRefCountZero: true }),
);
Expand Down

0 comments on commit 586d6f7

Please sign in to comment.