Skip to content

Commit

Permalink
Add cmview into useMemo dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
JOOHOJANG committed Nov 5, 2024
1 parent 8e585c4 commit 97298e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/editor/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const Preview = () => {
// Set trailing true to prevent ignoring last call
{ trailing: true }
),
[editorStore.doc]
[editorStore.doc, editorStore.cmView]
);

useEffect(() => {
Expand Down

0 comments on commit 97298e9

Please sign in to comment.