Comparing version
{ | ||
"name": "cornflux", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "A dispatching library for React applications promoting data encapsulation.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -14,2 +14,3 @@ import React, { PropTypes } from 'react'; | ||
verbose = false, | ||
passDispatchProp = true, | ||
}) { | ||
@@ -56,3 +57,9 @@ const debugLog = verbose ? console.debug.bind(console) : Function.prototype; | ||
render() { | ||
return <Component ref="container" {...this.props} /> | ||
const decoratorProps = {}; | ||
if (passDispatchProp) { | ||
decoratorProps.dispatch = this.dispatchAction; | ||
} | ||
return <Component ref="container" {...decoratorProps} {...this.props} /> | ||
}, | ||
@@ -59,0 +66,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
556481
0.07%21
5%566
0.89%0
-100%