WorldMaker / angular-pharkas

The angular-pharkas library is a wild, frontier pharmacist approach to building Angular components, in that it is all about that RX
MIT License
2 stars 0 forks source link

Ensure all of our subscribers are artisanal with proper closures #20

Closed WorldMaker closed 2 years ago

WorldMaker commented 2 years ago

RxJS clones subscribers if it doesn't think they are "safe" and Zone's fucking monkey-patching to Subjects makes them seem not safe so any state mechanics, which you know are the point of BehaviorSubject and ReplaySubject, break.

So, ensure all of our subscribers are artisanal and our arrow function closures should update the shared subjects and not voodoo clone subjects.