editor: fix recursive updates causing hang

This commit is contained in:
Abdullah Atta
2022-08-31 15:47:12 +05:00
parent dcd5c16514
commit ded65ff470
2 changed files with 1 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ export const useEditor = (
};
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[...deps, forceUpdate, options]
deps
);
useEffect(() => {