diff --git a/packages/react/src/Context.tsx b/packages/react/src/Context.tsx index 5677e3973..8c285d837 100644 --- a/packages/react/src/Context.tsx +++ b/packages/react/src/Context.tsx @@ -1,7 +1,6 @@ import { Editor } from '@tiptap/core' import React, { createContext, HTMLAttributes, ReactNode, useContext, - useMemo, } from 'react' import { EditorContent } from './EditorContent.js' @@ -38,14 +37,13 @@ export function EditorProvider({ children, slotAfter, slotBefore, editorContainerProps = {}, ...editorOptions }: EditorProviderProps) { const editor = useEditor(editorOptions) - const editorContextValue = useMemo(() => ({ editor }), [editor]) if (!editor) { return null } return ( - + {slotBefore} {({ editor: currentEditor }) => (