Skip to content

Commit

Permalink
fix(editor): remove unnecessary dependency from useEffect
Browse files Browse the repository at this point in the history
- Eliminada `setMarkdown` del array de dependencias en `useEffect`.
- La función `setMarkdown` es estable y no necesita estar en las dependencias.
  • Loading branch information
NachoBasilio committed Sep 10, 2024
1 parent cfd944e commit e783494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/EditorText/EditorText.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const EditorText = ({ setMarkdown }) => {
setMarkdown(markdownContent);
});

}, [setMarkdown]);
}, []);

return <div ref={editorRef} style={{ height: '400px' }} />;
};
Expand Down

0 comments on commit e783494

Please sign in to comment.