Open mohammad-saadati opened 1 year ago
Problem there is a variable in this directory: slate-react/src/components/slate.tsx:
const unmountRef = useRef(false)
and the value is changed in useEffect clean function: useEffect(() => { EDITOR_TO_ON_CHANGE.set(editor, onContextChange)
return () => { EDITOR_TO_ON_CHANGE.set(editor, () => {}) unmountRef.current = true }
}, [editor, onContextChange])
Solution unmountRef can be removed.
hey @mohammad-saadati, are you working on this issue ?
Problem there is a variable in this directory: slate-react/src/components/slate.tsx:
const unmountRef = useRef(false)
and the value is changed in useEffect clean function: useEffect(() => { EDITOR_TO_ON_CHANGE.set(editor, onContextChange)
}, [editor, onContextChange])
Solution unmountRef can be removed.