chore: update debug code in comment

pull/11293/head
rcmerci 2024-04-11 17:22:26 +08:00
parent ea566f7d5f
commit 9eb6fb321e
1 changed files with 4 additions and 4 deletions

View File

@ -415,19 +415,19 @@ when undo this op, this original entity-map will be transacted back into db")
(comment
(clear-undo-redo-stack)
(add-watch (:undo/repo->undo-stack @worker-state/*state)
(add-watch (:undo/repo->pege-block-uuid->undo-ops @worker-state/*state)
:xxx
(fn [_ _ o n]
(cljs.pprint/pprint {:k :undo
:o o
:n n})))
(add-watch (:undo/repo->redo-stack @worker-state/*state)
(add-watch (:undo/repo->pege-block-uuid->redo-ops @worker-state/*state)
:xxx
(fn [_ _ o n]
(cljs.pprint/pprint {:k :redo
:o o
:n n})))
(remove-watch (:undo/repo->undo-stack @worker-state/*state) :xxx)
(remove-watch (:undo/repo->redo-stack @worker-state/*state) :xxx))
(remove-watch (:undo/repo->pege-block-uuid->undo-ops @worker-state/*state) :xxx)
(remove-watch (:undo/repo->pege-block-uuid->redo-ops @worker-state/*state) :xxx))