kosich / rxjs-proxify

Turns a Stream of Objects into an Object of Streams
MIT License
35 stars 3 forks source link

proxifying Subjects #2

Closed kosich closed 3 years ago

kosich commented 3 years ago

Subjects should be proxifiable as well, letting us do:

const o = new Subject<{ value: number }>();
const p = proxify(o);

p.subscribe(console.log);
p.value.subscribe(console.log);
p.next({ value: 0 });
p.value.next(1);

Same should apply to BehaviorSubject and ReplaySubject

kosich commented 3 years ago

fixed with f9fc24d