@garage-panda/use-await-dom-render
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -25,4 +25,2 @@ "use strict"; | ||
react_1.default.useEffect(function () { | ||
if (updatesCount === 0) | ||
return; | ||
var timeout = setTimeout(function () { | ||
@@ -35,9 +33,2 @@ setLoaded(); | ||
}, [updatesCount]); | ||
react_1.default.useEffect(function () { | ||
setTimeout(function () { | ||
if (updatesCount === 0) { | ||
setLoaded(); | ||
} | ||
}, waitTimeMs); | ||
}, []); | ||
var startWait = react_1.default.useCallback(function (targetNode) { | ||
@@ -44,0 +35,0 @@ setUpdatesCount(0); |
{ | ||
"name": "@garage-panda/use-await-dom-render", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "React hook that is used to await all DOM elements inside a node to be rendered", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
9282
121