Error being throw when dragging and dropping with custom rich text editor.
Related to this history change & the new dndkit library
Todo
[ ] Understand why change was introduced in the first place
[ ] Remove or refactor as required
EDIT
Because we push a new undo as an empty array this condition doesn't short-circuit and the operations doesn't exist on the empty array. I'm not sure why this is only a problem for the App SDK and hasn't been happening the regular web app Rich Text 🤔
Error being throw when dragging and dropping with custom rich text editor.
Todo
EDIT
Because we push a new undo as an empty array this condition doesn't short-circuit and the operations doesn't exist on the empty array. I'm not sure why this is only a problem for the App SDK and hasn't been happening the regular web app Rich Text 🤔
https://github.com/ianstormtaylor/slate/blob/cd93871ae69721f7361e17e8b28feab004a9c855/packages/slate-history/src/with-history.ts#L72C5-L74C73