These are chat archives for pozadi/kefir
bufferWhileBy, but flush values not on the next update from source stream, but just immediately after the “flag” stream fired
hmm, this doc tells it’s the same as
bufferWhileBy, but following the description, they’re different:
stream.holdWhen(valve)pauses and buffers the event stream if last event in valve is truthy. All buffered events are released when valve becomes falsy.
bufferWhileByis a bit broken indeed. Perhaps it's a good idea to create a github-issue on this.
foo.bufferBy(foo.filterBy(bar.map(x => !x)))instead of
foo.bufferWhileBy(bar), not sure it will work, but it might.