Add return val for useEffect and deps
This commit is contained in:
parent
4611bde653
commit
2655196621
@ -16,7 +16,8 @@ export default function Component({ service }) {
|
|||||||
}, widget?.refreshInterval);
|
}, widget?.refreshInterval);
|
||||||
return () => clearInterval(refreshInterval);
|
return () => clearInterval(refreshInterval);
|
||||||
}
|
}
|
||||||
}, [refreshTimer]);
|
return undefined;
|
||||||
|
}, [refreshTimer, widget?.refreshInterval]);
|
||||||
|
|
||||||
const scrollingDisableStyle = widget.scrolling
|
const scrollingDisableStyle = widget.scrolling
|
||||||
? "pointer-events:none; overflow: hidden;"
|
? "pointer-events:none; overflow: hidden;"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user