fix: add immediatelyRender:false to Tiptap to prevent SSR hydration mismatch

This commit is contained in:
2026-04-27 07:19:09 +08:00
parent 91de833417
commit cece6a40dc
+1
View File
@@ -27,6 +27,7 @@ export function TiptapEditor({
className = "", className = "",
}: TiptapEditorProps) { }: TiptapEditorProps) {
const editor = useEditor({ const editor = useEditor({
immediatelyRender: false,
extensions: [ extensions: [
StarterKit.configure({ StarterKit.configure({
heading: false, heading: false,