Good bye Flux, welcome Bacon/Rx?
Matti Lankinen
12916

Does Bacon have an equivalent to Kefir’s Property (a stream that remembers its last value)?

It seems to me you’d want to build another layer of abstraction on top of that to handle your API calls. Something like this:

var selectFromStoreStream = function (storeStream, keyStream) {
var store = storeStream.lastValue;
var key = keyStream.lastValue;
  if (store.has(key)) {
return store.get(key);

} else {
storeStream.fetch(key);
return null;
}
};
var currentThingStream = selectFromStoreStream(
currentThingsStream,
currentThingIDStream
);

I’m also interested in exploring the benefits of functionally reactive Flux. I drafted a post to that end, but put it on hold while I’ve been exploring Nuclear.js.

Like what you read? Give Brenton Simpson a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.