From 331fe618b773d515d5b5b0abf4b79f3c5e50ace3 Mon Sep 17 00:00:00 2001 From: bdbch Date: Sat, 6 Apr 2024 00:29:03 +0200 Subject: [PATCH] fix(react): get rid of unnecessary wrap around deps --- packages/react/src/useEditor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/useEditor.ts b/packages/react/src/useEditor.ts index 4f47fdf19f4..bdc6af10f2b 100644 --- a/packages/react/src/useEditor.ts +++ b/packages/react/src/useEditor.ts @@ -122,7 +122,7 @@ export const useEditor = (options: Partial = {}, deps: Dependency return () => { isMounted = false } - }, [deps]) + }, deps) useEffect(() => { return () => {