rel-events
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -88,3 +88,3 @@ "use strict"; | ||
this._bindDataToProps = props => { | ||
if (this.useDataFrom) { | ||
if (this.useDataFrom && props.length) { | ||
throw new Error(`When configuring 'useDataFrom', you will end up with an empty state. Listen to the event with the name described in the 'useDataFrom' key instead.`); | ||
@@ -91,0 +91,0 @@ } |
@@ -103,3 +103,3 @@ import { connect } from 'react-redux'; | ||
_bindDataToProps = props => { | ||
if (this.useDataFrom) { | ||
if (this.useDataFrom && props.length) { | ||
throw new Error( | ||
@@ -106,0 +106,0 @@ `When configuring 'useDataFrom', you will end up with an empty state. Listen to the event with the name described in the 'useDataFrom' key instead.`, |
{ | ||
"name": "rel-events", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "The relevant React Events Library. Events framework based on redux to decouple our from business logic and make state management easy.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
159415