@trafilea/afrodita-components 4.3.1-beta.6 → 4.3.1-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/build/index.js CHANGED
@@ -12873,6 +12873,8 @@ var useWindowDimensions = function (breakpoints) {
12873
12873
  function handleResize() {
12874
12874
  setWindowDimensions(getWindowDimensions());
12875
12875
  }
12876
+ // calling it here updates the dimensions on first render
12877
+ handleResize();
12876
12878
  window.addEventListener('resize', handleResize);
12877
12879
  return function () { return window.removeEventListener('resize', handleResize); };
12878
12880
  }, []);