react-loader-spinner
Advanced tools
Comparing version 3.1.4 to 3.1.5
@@ -102,7 +102,12 @@ (function (global, factory) { | ||
(0, _react.useEffect)(function () { | ||
var timer = void 0; | ||
if (props.timeout && props.timeout > 0) { | ||
setTimeout(function () { | ||
timer = setTimeout(function () { | ||
setDisplay(false); | ||
}, props.timeout); | ||
} | ||
return function () { | ||
if (timer) clearTimeout(timer); | ||
}; | ||
}); | ||
@@ -109,0 +114,0 @@ |
{ | ||
"name": "react-loader-spinner", | ||
"version": "3.1.4", | ||
"version": "3.1.5", | ||
"description": " react-spinner-loader provides simple React.js spinner component which can be implemented for async wait operation before data load to the view.", | ||
@@ -5,0 +5,0 @@ "unpkg": "dist/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
99197
30
2047