react-r2d2
Advanced tools
+2
-5
@@ -172,7 +172,3 @@ (function (global, factory) { | ||
| if (!Alt.displayName) { | ||
| Alt.displayName = 'AltComponent'; | ||
| } | ||
| if (!Alt || valid) { | ||
| if (valid) { | ||
| return React__default.createElement(WrappedComponent, _extends({}, passThroughProps, { | ||
@@ -184,2 +180,3 @@ data: data | ||
| if (Alt) return React__default.createElement(Alt, null); | ||
| return null; | ||
@@ -186,0 +183,0 @@ } |
+2
-5
@@ -166,7 +166,3 @@ import React, { Component } from 'react'; | ||
| if (!Alt.displayName) { | ||
| Alt.displayName = 'AltComponent'; | ||
| } | ||
| if (!Alt || valid) { | ||
| if (valid) { | ||
| return React.createElement(WrappedComponent, _extends({}, passThroughProps, { | ||
@@ -178,2 +174,3 @@ data: data | ||
| if (Alt) return React.createElement(Alt, null); | ||
| return null; | ||
@@ -180,0 +177,0 @@ } |
+2
-5
@@ -171,7 +171,3 @@ 'use strict'; | ||
| if (!Alt.displayName) { | ||
| Alt.displayName = 'AltComponent'; | ||
| } | ||
| if (!Alt || valid) { | ||
| if (valid) { | ||
| return React__default.createElement(WrappedComponent, _extends({}, passThroughProps, { | ||
@@ -183,2 +179,3 @@ data: data | ||
| if (Alt) return React__default.createElement(Alt, null); | ||
| return null; | ||
@@ -185,0 +182,0 @@ } |
+3
-2
| { | ||
| "name": "react-r2d2", | ||
| "version": "0.3.0", | ||
| "version": "0.4.0", | ||
| "description": "HOC for dispatching an action automatically on component render", | ||
@@ -14,3 +14,4 @@ "keywords": ["react", "higher", "order", "component", "redux", "dispatch", "store"], | ||
| "build:umd": "rollup -c -f umd -n r2d2 -o dist/r2d2.js", | ||
| "build": "npm run build:commonjs && npm run build:es && npm run build:umd" | ||
| "build": "npm run build:commonjs && npm run build:es && npm run build:umd", | ||
| "publish": "npm run build && npm publish" | ||
| }, | ||
@@ -17,0 +18,0 @@ "author": "Tom Arrell <me@tomarrell.com> (https://github.com/tomarrell)", |
+2
-5
@@ -120,7 +120,3 @@ import React, { Component } from 'react'; | ||
| if (!Alt.displayName) { | ||
| Alt.displayName = 'AltComponent'; | ||
| } | ||
| if (!Alt || valid) { | ||
| if (valid) { | ||
| return ( | ||
@@ -135,2 +131,3 @@ <WrappedComponent | ||
| if (Alt) return <Alt />; | ||
| return null; | ||
@@ -137,0 +134,0 @@ } |
29312
-1.09%603
-1.95%