diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsx index 9a3b690eb..57b830934 100644 --- a/apps/client/src/widgets/react/hooks.tsx +++ b/apps/client/src/widgets/react/hooks.tsx @@ -635,7 +635,8 @@ export function useLegacyWidget(widgetFactory: () => T, { const renderedWidget = widget.render(); return [ widget, renderedWidget ]; - }, [ noteContext, parentComponent, widgetFactory]); + }, [ noteContext, parentComponent ]); // eslint-disable-line react-hooks/exhaustive-deps + // widgetFactory() is intentionally left out // Attach the widget to the parent. useEffect(() => {