reason
reason copied to clipboard
Inlined functions look wrongly formatted
let editor =
Tiptap.Editor.use(
~provider,
~document=ydoc,
~renderCursor=CollaborationCursor.renderCursor,
~user=initialUser,
~onCreate=({editor}: Tiptap.createProps) => {
onCreateEditor(editor)
}
);
Gets formatted to
let editor =
Tiptap.Editor.use(
~provider,
~document=ydoc,
~renderCursor=CollaborationCursor.renderCursor,
~user=initialUser,
~onCreate=({editor}: Tiptap.createProps) => {
onCreateEditor(editor)
});
current master formats your example as:
let editor =
Tiptap.Editor.use(
~provider,
~document=ydoc,
~renderCursor=CollaborationCursor.renderCursor,
~user=initialUser,
~onCreate=({editor}: Tiptap.createProps) => {
onCreateEditor(editor)
});
my bad, misjudged where the issue was