Closed aindlq closed 9 years ago
flatMap
returns stream, not property
Yeah, @iofjuupasli is right. You can convert it to a property like this:
const property2 = property.flatMap(v => Kefir.constant(v + 1)).toProperty();
What is the reason to not preserve observable type for flatMap?
Frankly I can't remember the original reasoning. But I think we should leave it as is, so people won't have to migrate.
Although we should fix the docs, it isn't mentioned that flatMap always returns a stream.
I'm using latest stable version - 3.1.0.