From 97298e9eb5d43871c64cbf49d6873d750b60f1dd Mon Sep 17 00:00:00 2001 From: JOOHOJANG Date: Tue, 5 Nov 2024 10:15:36 +0900 Subject: [PATCH] Add cmview into useMemo dependencies --- frontend/src/components/editor/Preview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/editor/Preview.tsx b/frontend/src/components/editor/Preview.tsx index 1438beee..d734d641 100644 --- a/frontend/src/components/editor/Preview.tsx +++ b/frontend/src/components/editor/Preview.tsx @@ -65,7 +65,7 @@ const Preview = () => { // Set trailing true to prevent ignoring last call { trailing: true } ), - [editorStore.doc] + [editorStore.doc, editorStore.cmView] ); useEffect(() => {