Skip to content

Commit

Permalink
Update useEditorEffect.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
coolov committed Jan 25, 2024
1 parent 0249b2a commit 0549028
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/hooks/useEditorEffect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ export function useEditorEffect(
// be defined inline and run on every re-render.
useLayoutGroupEffect(
() => {
if (editorView) {
effect(editorView);
}
if (editorView) effect(editorView);
},
// The rules of hooks want to be able to statically
// verify the dependencies for the effect, but this will
Expand Down

0 comments on commit 0549028

Please sign in to comment.