This tracks a few PRs from main that update hooks like useEditorState and useEditorEffect to always provide non-null state and view objects.
It also updates the useEditorView hook (now useEditor) to look more like that on main, inlining several function calls and moving most hook usage from the ProseMirror component into the useEditor hook.
This tracks a few PRs from main that update hooks like useEditorState and useEditorEffect to always provide non-null state and view objects.
It also updates the useEditorView hook (now useEditor) to look more like that on main, inlining several function calls and moving most hook usage from the ProseMirror component into the useEditor hook.