We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93f89a4 commit e1f324eCopy full SHA for e1f324e
lib/react-most.es6
@@ -15,8 +15,6 @@ function observable(obj){
15
return !!obj.observe
16
}
17
18
-const id = _=>_;
19
-
20
export function connect(main, initprops={}) {
21
return function(ReactClass){
22
class Connect extends React.Component {
@@ -26,6 +24,9 @@ export function connect(main, initprops={}) {
26
24
fromEvent(e){
27
25
let {type, target} = e;
28
context[intentStream].send({type,target});
+ },
+ fromPromise(p){
29
+ p.then(context[intentStream].send);
30
31
};
32
let sinks = main(context[intentStream],props);
0 commit comments