Comparing version 5.1.3 to 5.1.4
@@ -166,2 +166,7 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
React.useEffect(function () { | ||
if (isCustomPlaceholder) { | ||
setStatus('loading'); | ||
} | ||
}, [imgSrc]); | ||
var wrapperClass = cn(prefixCls, wrapperClassName, _defineProperty({}, "".concat(prefixCls, "-error"), isError)); | ||
@@ -168,0 +173,0 @@ var mergedSrc = isError && fallback ? fallback : src; |
@@ -64,3 +64,3 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; | ||
}); | ||
}; // we don't to test this if canPreview changed when same url | ||
}; // we don't need to test this if canPreview changed when url stays the same | ||
@@ -67,0 +67,0 @@ /* istanbul ignore next */ |
@@ -187,2 +187,7 @@ "use strict"; | ||
React.useEffect(function () { | ||
if (isCustomPlaceholder) { | ||
setStatus('loading'); | ||
} | ||
}, [imgSrc]); | ||
var wrapperClass = (0, _classnames.default)(prefixCls, wrapperClassName, (0, _defineProperty2.default)({}, "".concat(prefixCls, "-error"), isError)); | ||
@@ -189,0 +194,0 @@ var mergedSrc = isError && fallback ? fallback : src; |
@@ -77,3 +77,3 @@ "use strict"; | ||
}); | ||
}; // we don't to test this if canPreview changed when same url | ||
}; // we don't need to test this if canPreview changed when url stays the same | ||
@@ -80,0 +80,0 @@ /* istanbul ignore next */ |
{ | ||
"name": "rc-image", | ||
"version": "5.1.3", | ||
"version": "5.1.4", | ||
"description": "React easy to use image component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
72782
1836
0