React Hook useEffect has missing dependencies: 'chartX', 'lowerChartCanvasRef', 'lowerChartY', 'resizeCanvases', 'upperChartCanvasRef', and 'upperChartY'. Either include them or remove the dependency array. Outer scope values like 'setCanvasSize' aren't valid dependencies because mutating them doesn't re-render the component