diff --git a/services/plugin/src/Plugin.tsx b/services/plugin/src/Plugin.tsx index 03e04e29..3b65c85e 100644 --- a/services/plugin/src/Plugin.tsx +++ b/services/plugin/src/Plugin.tsx @@ -55,12 +55,13 @@ export const Plugin = ({ // since we do not know what props are passed, the dependency array has to be keys of whatever is standard prop const memoizedPropsToPass = useMemo( () => propsToPass, - // eslint-disable-next-line react-hooks/exhaustive-deps + /* eslint-disable react-hooks/exhaustive-deps */ [ ...Object.keys(propsToPass) .sort() - .map((k) => propsToPass[k]), + .map((k) => (propsToPass as any)[k]), ] + /* eslint-enable react-hooks/exhaustive-deps */ ) useEffect(() => {