Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ResizeDetector = props => {
if (resizeTimeout) {
clearTimeout(resizeTimeout);
}
resizeTimeout = setTimeout(() => {
var resizeTimeout = setTimeout(() => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be replaced with let and remove the global one on line 7.

onResize(true); // Force on resize.
}, DELAY);
}, [onResize]);
Expand Down