@thecb/components 7.7.8-beta.6 → 7.7.8-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js
CHANGED
|
@@ -24492,7 +24492,7 @@ var useCheckElementsInViewport = function useCheckElementsInViewport() {
|
|
|
24492
24492
|
|
|
24493
24493
|
var viewportWidth = window.innerWidth || document.documentElement.clientWidth;
|
|
24494
24494
|
var viewportHeight = window.innerHeight || document.documentElement.clientHeight;
|
|
24495
|
-
React.
|
|
24495
|
+
React.useLayoutEffect(function () {
|
|
24496
24496
|
elements.forEach(function (element) {
|
|
24497
24497
|
console.log("element is", element);
|
|
24498
24498
|
var domEl = document.querySelector(element);
|