comment on setTimeout in undo

This commit is contained in:
Tienson Qin
2023-05-15 19:02:12 +08:00
parent 4211cdc984
commit 047653bd97

View File

@@ -46,6 +46,7 @@
(let [{:keys [editor-cursor app-state]} (undo-redo/undo)]
(restore-cursor! editor-cursor)
(restore-app-state! app-state))
;; ugly timeout: avoid save block from frontend.handler.editor.lifecycle/will-unmount
(js/setTimeout #(state/set-editor-op! nil) 100))
(defn redo!