diff --git a/src/plugins/indicator/renderer/IndicatorWidget.tsx b/src/plugins/indicator/renderer/IndicatorWidget.tsx index ce16c0c9..fa7de396 100644 --- a/src/plugins/indicator/renderer/IndicatorWidget.tsx +++ b/src/plugins/indicator/renderer/IndicatorWidget.tsx @@ -22,9 +22,10 @@ const IndicatorWidget = React.forwardRef { + React.useLayoutEffect(() => { + // TODO: swap to onRender after https://github.com/yandex-cloud/chartkit/issues/33 onLoad?.(); - }, []); + }); if (isEmpty(data)) { throw new ChartKitError({