chore: subscribe co value

This commit is contained in:
Aslam H
2024-11-04 16:45:29 +07:00
parent 7a57f81b07
commit b613bbd66c
9 changed files with 132 additions and 69 deletions

View File

@@ -17,7 +17,12 @@ export interface LaEditorProps extends UseLaEditorProps {
export const LaEditor = React.forwardRef<HTMLDivElement, LaEditorProps>(
({ className, editorContentClassName, me, personalPage, ...props }, ref) => {
const editor = useLaEditor({ ...props, me, personalPage })
const editor = useLaEditor({
...props,
me,
personalPage,
shouldRerenderOnTransaction: true,
})
if (!editor) {
return null