Closed iofjuupasli closed 8 years ago
Yeah, you're probably right. And same for skipUntilBy
.
Also marking this as [breaking] because this change may potentially break people's code.
Does it means, that in case a.filterBy(b)
errors from a
will not flow?
Hm, yes. I'm not sure which behavior is better here then.
should be ended if primary was ended
also can't be implemented. Only when secondary is truthy.
My case for deactivation - I have external process which is represented as endless stream
. It starts external process in stream declaration, and ends it using callback in stream declaration for deactivation.
It's important to have child process only when application needs it, listen to it.
There is another observable which declare whether this stream required now.
So for my case:
a$.flatMapLatest(a => a ? external$ : Kefir.never())
And it works ok for me. Its behavior almost same as external$.filterBy(a$)
except things discussed here.
So we can leave filterBy
as is for cases when 'errors' and 'end' are important, and it's ok that primary activated.
Sounds good to me. I'll close this then, and we can revisit this later.
Seems that
a
shouldn't be active untilb
is truthy