What is PassthroughSubject & CurrentValueSubject
I think we can make analogies with real world cases. PassthroughSubject = A doorbell push button When someone rings the door, you are notified only if you are at home (you are the subscriber) PassthroughSubject doesn’t have a state, it emits whatever it receives to its subscribers. CurrentValueSubject = A light switch Someone turns on … Read more