Add return val for useEffect and deps

This commit is contained in:
Reiss Cashmore 2023-10-30 12:32:54 +00:00
parent 4611bde653
commit 2655196621

View File

@ -16,7 +16,8 @@ export default function Component({ service }) {
}, widget?.refreshInterval);
return () => clearInterval(refreshInterval);
}
}, [refreshTimer]);
return undefined;
}, [refreshTimer, widget?.refreshInterval]);
const scrollingDisableStyle = widget.scrolling
? "pointer-events:none; overflow: hidden;"