@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.esm.js +2 -0
- package/build/index.esm.js.map +1 -1
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -12847,6 +12847,8 @@ var useWindowDimensions = function (breakpoints) {
|
|
|
12847
12847
|
function handleResize() {
|
|
12848
12848
|
setWindowDimensions(getWindowDimensions());
|
|
12849
12849
|
}
|
|
12850
|
+
// calling it here updates the dimensions on first render
|
|
12851
|
+
handleResize();
|
|
12850
12852
|
window.addEventListener('resize', handleResize);
|
|
12851
12853
|
return function () { return window.removeEventListener('resize', handleResize); };
|
|
12852
12854
|
}, []);
|