Closed heckj closed 6 months ago
Thanks this will be very useful. I'm a casual combine user, but wondering why this is a PassThroughSubject instead of a CurrentValueSubject. I think in common usage case (subscribe once and early) it doesn't matter, but generally I would think state would be better modeled by CurrentValueSubject?
Can easily do that. I tend to lean into PassthroughSubject because it doesn't require an initial value, so it's often far easier to work with. In this case, an initial value of .disconnected
would be fine, as the value flow on this is a pretty simple looping state machine setup. I'll open a PR to switch that up
updated with #91
resolves #88