We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe8ede1 commit 45dba11Copy full SHA for 45dba11
lib/react-most.js
@@ -24,6 +24,7 @@ export function connect(main, initprops={}) {
24
super(props, context);
25
// the outer props has higher piority
26
this.state = mergeAll([ReactClass.defaultProps, initprops, props])
27
+ initprops = {}
28
if(props.history) initprops.history=true
29
this.actions = {
30
fromEvent(e){
@@ -37,7 +38,6 @@ export function connect(main, initprops={}) {
37
38
let sinks = main(context[intentStream],props);
39
let actionsSinks = []
40
if(initprops.history){
- initprops = {}
41
initprops.history = initHistory(context[historyStream])
42
initprops.history.travel.observe(state=>{
43
return this.setState(state)
0 commit comments