@hyphen/hyphen-components 6.2.2 → 6.2.3
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/hyphen-components.cjs.development.js +2 -1
- package/dist/hyphen-components.cjs.development.js.map +1 -1
- package/dist/hyphen-components.cjs.production.min.js +1 -1
- package/dist/hyphen-components.cjs.production.min.js.map +1 -1
- package/dist/hyphen-components.esm.js +2 -1
- package/dist/hyphen-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ResponsiveProvider/ResponsiveProvider.test.tsx +18 -0
- package/src/components/ResponsiveProvider/ResponsiveProvider.tsx +4 -1
|
@@ -1579,7 +1579,8 @@ var ResponsiveProvider = function ResponsiveProvider(_ref) {
|
|
|
1579
1579
|
};
|
|
1580
1580
|
window.addEventListener('resize', throttledResize);
|
|
1581
1581
|
return function () {
|
|
1582
|
-
|
|
1582
|
+
window.removeEventListener('resize', throttledResize);
|
|
1583
|
+
clearTimeout(timeoutId);
|
|
1583
1584
|
};
|
|
1584
1585
|
}
|
|
1585
1586
|
}, [throttle]);
|