Skip to content

Commit c4a38a7

Browse files
committed
Fix Lexical content hydration
1 parent ae6d178 commit c4a38a7

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

components/RichTextEditor.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -925,13 +925,6 @@ const RichTextEditor = forwardRef<RichTextEditorHandle, RichTextEditorProps>(
925925
[readOnly],
926926
);
927927

928-
useEffect(() => {
929-
const normalized = html.trim();
930-
if (normalized !== lastAppliedHtmlRef.current) {
931-
lastAppliedHtmlRef.current = normalized;
932-
}
933-
}, [html]);
934-
935928
return (
936929
<div className="h-full w-full bg-secondary" data-component="rich-text-editor">
937930
<LexicalComposer initialConfig={initialConfig}>

0 commit comments

Comments
 (0)