nytimes / react-prosemirror

A library for safely integrating ProseMirror and React.
Other
459 stars 17 forks source link

Always provide non-null state and view in hooks. #114

Closed smoores-dev closed 8 months ago

smoores-dev commented 8 months ago

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.