Closed yemi closed 8 years ago
@yemi That is supported by this driver. If I recall, the function which parses the vTree flattens the observables. Can't look at the source right now to double check, but that's roughly it.
It's certainly a great feature for convenience.
Here is a link to the section of code: transposition.js
If it detects an observable, it flatMaps it and recursively calls the transpose function.
Thanks @SkaterDad for pointing him to that.
Closing this. If anyone feels it needs to be reopened feel free.
I would like to know if it's possible to add an observable of vtrees directly into a view like in the todo-mvc example: https://github.com/cyclejs/todomvc-cycle/blob/master/src/components/Todos/view.js#L29
This looks kind of magical to me and im not sure how it works, but does cycle-snabbdom support the same kind of usage?