is it possible to imitate something like re-frame
reg-sub-raw
with beicon/rxjs
?
observables are lazy, but if I want to be able to retrieve the last value from them, I pin them to a behavior-subject
, but behavior-subjects
make my streams stop being lazy...
I would like to automagically make the calculation happen only when I deref behavior-subject
is this even possible?
the only thing I can figure out is to rewrite the use-rxsub
, which can be found in the penpot
, so that it accepts the stream and only creates the behavior-subject
inside